diff --git a/locales/ja-JP.yml b/locales/ja-JP.yml
index add32a5531..44d4231016 100644
--- a/locales/ja-JP.yml
+++ b/locales/ja-JP.yml
@@ -1800,6 +1800,9 @@ _achievements:
_setNameToNoriDev:
title: "神様コンプレックス(CherryPick)"
description: "名前を noridev に設定した"
+ _setNameToYojo:
+ title: "ロリータコンプレックス"
+ description: "名前を 幼女 に設定した"
_passedSinceAccountCreated1:
title: "一周年"
description: "アカウント作成から1年経過した"
diff --git a/packages/backend/src/core/SearchService.ts b/packages/backend/src/core/SearchService.ts
index 7db0614803..79e1d06d93 100644
--- a/packages/backend/src/core/SearchService.ts
+++ b/packages/backend/src/core/SearchService.ts
@@ -243,6 +243,13 @@ export class SearchService {
}
}
+ if (opts.fileOption) {
+ if (opts.fileOption === 'file-only') {
+ query.andWhere('note.fileIds != \'{}\'');
+ } else if (opts.fileOption === 'no-file') {
+ query.andWhere('note.fileIds = :fIds', { fIds: '{}' });
+ }
+ }
this.queryService.generateVisibilityQuery(query, me);
if (me) this.queryService.generateMutedUserQuery(query, me);
if (me) this.queryService.generateBlockedUserQuery(query, me);
diff --git a/packages/frontend/src/const.ts b/packages/frontend/src/const.ts
index b8b5502aa0..d71e9cf6e5 100644
--- a/packages/frontend/src/const.ts
+++ b/packages/frontend/src/const.ts
@@ -84,6 +84,7 @@ export const ROLE_POLICIES = [
'canManageCustomEmojis',
'canManageAvatarDecorations',
'canSearchNotes',
+ 'canAdvancedSearchNotes',
'canUseTranslator',
'canHideAds',
'driveCapacityMb',
diff --git a/packages/frontend/src/pages/admin/roles.vue b/packages/frontend/src/pages/admin/roles.vue
index f393cbb389..c0f2a736ef 100644
--- a/packages/frontend/src/pages/admin/roles.vue
+++ b/packages/frontend/src/pages/admin/roles.vue
@@ -111,7 +111,15 @@ SPDX-License-Identifier: AGPL-3.0-only
-