diff --git a/locales/index.d.ts b/locales/index.d.ts index 0ae188f1f7..6845dd86cf 100644 --- a/locales/index.d.ts +++ b/locales/index.d.ts @@ -7458,6 +7458,14 @@ export interface Locale extends ILocale { * 常に表示 */ "always": string; + /** + * リモートユーザーに表示(アイコンのみ) + */ + "remoteIcon": string; + /** + * 常に表示(アイコンのみ) + */ + "alwaysIcon": string; }; "_serverDisconnectedBehavior": { /** diff --git a/locales/ja-JP.yml b/locales/ja-JP.yml index 1b59708d85..6bfc369af5 100644 --- a/locales/ja-JP.yml +++ b/locales/ja-JP.yml @@ -1947,6 +1947,8 @@ _instanceTicker: none: "表示しない" remote: "リモートユーザーに表示" always: "常に表示" + remoteIcon: "リモートユーザーに表示(アイコンのみ)" + alwaysIcon: "常に表示(アイコンのみ)" _serverDisconnectedBehavior: reload: "自動でリロード" diff --git a/packages/frontend/src/components/MkNote.vue b/packages/frontend/src/components/MkNote.vue index 1a8814b7cb..f5446c3dbb 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
- +
@@ -275,6 +275,7 @@ const hardMuted = ref(props.withHardMute && checkMute(appearNote.value, $i?.hard const translation = ref(null); const translating = ref(false); 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 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 4a350388c2..0eed8c49d1 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
- +
@@ -302,6 +302,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 35c07bc80c..ea0f1fe9ec 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
+
+ +