From 5a4ad5b56cb7a91ea9151976994ce1c32406a713 Mon Sep 17 00:00:00 2001 From: fumnanya Date: Mon, 13 Jan 2025 19:19:16 +0100 Subject: [PATCH 1/5] WIP: add `severed_relationships` --- components/notification/NotificationCard.vue | 11 +++++++ .../RelationshipSeveranceCard.vue | 29 +++++++++++++++++++ locales/en.json | 5 ++++ 3 files changed, 45 insertions(+) create mode 100644 components/notification/RelationshipSeveranceCard.vue diff --git a/components/notification/NotificationCard.vue b/components/notification/NotificationCard.vue index d919942ddc..25a5af95a2 100644 --- a/components/notification/NotificationCard.vue +++ b/components/notification/NotificationCard.vue @@ -1,5 +1,6 @@ @@ -134,5 +137,13 @@ if (unsupportedEmojiReactionTypes.includes(notification.type) || !supportedNotif + diff --git a/components/notification/RelationshipSeveranceCard.vue b/components/notification/RelationshipSeveranceCard.vue new file mode 100644 index 0000000000..806ca4239a --- /dev/null +++ b/components/notification/RelationshipSeveranceCard.vue @@ -0,0 +1,29 @@ + + + diff --git a/locales/en.json b/locales/en.json index 20520aa09d..dab00d31a9 100644 --- a/locales/en.json +++ b/locales/en.json @@ -339,6 +339,11 @@ "followed_you_count": "{0} people followed you|{0} person followed you|{0} people followed you", "missing_type": "MISSING notification.type:", "reblogged_post": "boosted your post", + "relationship_severance": { + "account_suspension": "An admin from {0} has suspended {1}, which means you can no longer receive updates from them or interact with them.", + "domain_block": "An admin from {from} has blocked {target}, including {followers} of your followers and {n} account you follow.|An admin from {from} has blocked {target}, including {followers} of your followers and {n} accounts you follow.", + "user_domain_block": "You have blocked {target}, removing {followers} of your followers and {n} account you follow.|You have blocked {target}, removing {followers} of your followers and {n} accounts you follow." + }, "reported": "{0} reported {1}", "request_to_follow": "requested to follow you", "signed_up": "signed up", From 5aa2b31ecb6db85acf5fd1b1908e42e162199a48 Mon Sep 17 00:00:00 2001 From: TAKAHASHI Shuuji Date: Fri, 17 Jan 2025 22:11:39 +0900 Subject: [PATCH 2/5] fix: resolve typecheck errors --- components/notification/NotificationCard.vue | 7 +++++++ components/notification/RelationshipSeveranceCard.vue | 10 +++++++++- 2 files changed, 16 insertions(+), 1 deletion(-) diff --git a/components/notification/NotificationCard.vue b/components/notification/NotificationCard.vue index 25a5af95a2..c5c50dac3e 100644 --- a/components/notification/NotificationCard.vue +++ b/components/notification/NotificationCard.vue @@ -141,6 +141,13 @@ if (unsupportedEmojiReactionTypes.includes(notification.type) || !supportedNotif
+
diff --git a/components/notification/RelationshipSeveranceCard.vue b/components/notification/RelationshipSeveranceCard.vue index 806ca4239a..5adc0dc467 100644 --- a/components/notification/RelationshipSeveranceCard.vue +++ b/components/notification/RelationshipSeveranceCard.vue @@ -1,6 +1,14 @@