summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHazelnoot <acomputerdog@gmail.com>2024-10-10 10:11:03 -0400
committerHazelnoot <acomputerdog@gmail.com>2024-10-10 14:01:40 -0400
commita7076ed3e08f91cbc886ef26cc33b8939b65d741 (patch)
tree7d18143b41d2c91b436c26a78dcec0433551364a
parentadd "following" and "mutuals" relation badges (diff)
downloadsharkey-a7076ed3e08f91cbc886ef26cc33b8939b65d741.tar.gz
sharkey-a7076ed3e08f91cbc886ef26cc33b8939b65d741.tar.bz2
sharkey-a7076ed3e08f91cbc886ef26cc33b8939b65d741.zip
show "blocking you" indicator to instance staff only
-rw-r--r--locales/en-US.yml1
-rw-r--r--locales/index.d.ts4
-rw-r--r--locales/ja-JP.yml1
-rw-r--r--packages/frontend/src/pages/user/home.vue1
4 files changed, 7 insertions, 0 deletions
diff --git a/locales/en-US.yml b/locales/en-US.yml
index ab09ccaf86..e50a78e414 100644
--- a/locales/en-US.yml
+++ b/locales/en-US.yml
@@ -271,6 +271,7 @@ defaultValueIs: "Default: {value}"
noCustomEmojis: "There are no emoji"
noJobs: "There are no jobs"
federating: "Federating"
+blockingYou: "Blocking you"
blocked: "Blocked"
blockedByBase: "This host is blocked implicitly because a base domain is blocked. To unblock this host, first unblock the base domain(s)."
silencedByBase: "This host is silenced implicitly because a base domain is silenced. To un-silence this host, first un-silence the base domain(s)."
diff --git a/locales/index.d.ts b/locales/index.d.ts
index 742bab2341..6d6ee68c1c 100644
--- a/locales/index.d.ts
+++ b/locales/index.d.ts
@@ -1101,6 +1101,10 @@ export interface Locale extends ILocale {
*/
"federating": string;
/**
+ * Blocking you
+ */
+ "blockingYou": string;
+ /**
* ブロック中
*/
"blocked": string;
diff --git a/locales/ja-JP.yml b/locales/ja-JP.yml
index 67a4580560..f2c3d67133 100644
--- a/locales/ja-JP.yml
+++ b/locales/ja-JP.yml
@@ -271,6 +271,7 @@ defaultValueIs: "デフォルト: {value}"
noCustomEmojis: "絵文字はありません"
noJobs: "ジョブはありません"
federating: "連合中"
+blockingYou: "Blocking you"
blocked: "ブロック中"
blockedByBase: "This host is blocked implicitly because a base domain is blocked. To unblock this host, first unblock the base domain(s)."
silencedByBase: "This host is silenced implicitly because a base domain is silenced. To un-silence this host, first un-silence the base domain(s)."
diff --git a/packages/frontend/src/pages/user/home.vue b/packages/frontend/src/pages/user/home.vue
index 8401ebc610..92879b23d3 100644
--- a/packages/frontend/src/pages/user/home.vue
+++ b/packages/frontend/src/pages/user/home.vue
@@ -37,6 +37,7 @@ SPDX-License-Identifier: AGPL-3.0-only
<li v-if="user.isMuted">{{ i18n.ts.muted }}</li>
<li v-if="user.isRenoteMuted">{{ i18n.ts.renoteMuted }}</li>
<li v-if="user.isBlocking">{{ i18n.ts.blocked }}</li>
+ <li v-if="user.isBlocked && $i.isModerator">{{ i18n.ts.blockingYou }}</li>
</ul>
<div class="actions">
<button class="menu _button" @click="menu"><i class="ti ti-dots"></i></button>