diff --git a/locales/index.d.ts b/locales/index.d.ts index c7996b2ca9fd..ae10449a62ee 100644 --- a/locales/index.d.ts +++ b/locales/index.d.ts @@ -7491,13 +7491,21 @@ export interface Locale extends ILocale { */ "none": string; /** - * リモートユーザーに表示 + * リモートユーザーに表示(バナー) */ "remote": string; /** - * 常に表示 + * 常に表示(バナー) */ "always": string; + /** + * リモートユーザーに表示(アイコン) + */ + "remoteIcon": string; + /** + * 常に表示(アイコン) + */ + "alwaysIcon": string; }; "_serverDisconnectedBehavior": { /** diff --git a/locales/ja-JP.yml b/locales/ja-JP.yml index 1aed7c21ae6b..8983cd996406 100644 --- a/locales/ja-JP.yml +++ b/locales/ja-JP.yml @@ -1955,8 +1955,10 @@ _displayOfSensitiveMedia: _instanceTicker: none: "表示しない" - remote: "リモートユーザーに表示" - always: "常に表示" + remote: "リモートユーザーに表示(バナー)" + always: "常に表示(バナー)" + remoteIcon: "リモートユーザーに表示(アイコン)" + alwaysIcon: "常に表示(アイコン)" _serverDisconnectedBehavior: reload: "自動でリロード" diff --git a/packages/frontend/src/components/MkNote.vue b/packages/frontend/src/components/MkNote.vue index 193dfe5b7ec5..e02d79541380 100644 --- a/packages/frontend/src/components/MkNote.vue +++ b/packages/frontend/src/components/MkNote.vue @@ -47,7 +47,7 @@ SPDX-License-Identifier: AGPL-3.0-only
- +
@@ -288,6 +288,7 @@ const showSoftWordMutedWord = computed(() => defaultStore.state.showSoftWordMute const translation = ref(null); const translating = ref(false); const showTicker = (defaultStore.state.instanceTicker === 'always') || (defaultStore.state.instanceTicker === 'remote' && appearNote.value.user.instance); +const showIcon = (defaultStore.state.instanceTicker === 'alwaysIcon') || (defaultStore.state.instanceTicker === 'remoteIcon' && appearNote.value.user.instance); const canRenote = computed(() => ['public', 'home'].includes(appearNote.value.visibility) || (appearNote.value.visibility === 'followers' && appearNote.value.userId === $i?.id)); const renoteCollapsed = ref( defaultStore.state.collapseRenotes && isRenote && ( diff --git a/packages/frontend/src/components/MkNoteDetailed.vue b/packages/frontend/src/components/MkNoteDetailed.vue index 835a66386826..696c2481ea83 100644 --- a/packages/frontend/src/components/MkNoteDetailed.vue +++ b/packages/frontend/src/components/MkNoteDetailed.vue @@ -70,7 +70,7 @@ SPDX-License-Identifier: AGPL-3.0-only
- +
@@ -304,6 +304,7 @@ const translating = ref(false); const parsed = appearNote.value.text ? mfm.parse(appearNote.value.text) : null; const urls = parsed ? extractUrlFromMfm(parsed).filter((url) => appearNote.value.renote?.url !== url && appearNote.value.renote?.uri !== url) : null; const showTicker = (defaultStore.state.instanceTicker === 'always') || (defaultStore.state.instanceTicker === 'remote' && appearNote.value.user.instance); +const showInstanceIcon = (defaultStore.state.instanceTicker === 'alwaysIcon') || (defaultStore.state.instanceTicker === 'remoteIcon' && appearNote.value.user.instance); const conversation = ref([]); const replies = ref([]); const canRenote = computed(() => ['public', 'home'].includes(appearNote.value.visibility) || appearNote.value.userId === $i?.id); diff --git a/packages/frontend/src/components/global/MkAvatar.vue b/packages/frontend/src/components/global/MkAvatar.vue index 35c07bc80ca3..765aaf1ff548 100644 --- a/packages/frontend/src/components/global/MkAvatar.vue +++ b/packages/frontend/src/components/global/MkAvatar.vue @@ -23,6 +23,9 @@ SPDX-License-Identifier: AGPL-3.0-only
+
+ +