From 23ba49f33e87c4a11836cbb5f79220281be595ac Mon Sep 17 00:00:00 2001 From: Darius Kazemi Date: Mon, 2 Jan 2023 13:33:31 -0800 Subject: [PATCH] feat: support local-only posts from Hometown This checks the ActivityPub object for any given status to see if it has a `localOnly` property. If it does and it is set to true, then a local-only icon is displayed in the `StatusAction` bar. This mimicks the current Hometown layout and behavior. --- components/status/StatusActions.vue | 15 ++++++++++++++- locales/en-US.json | 1 + 2 files changed, 15 insertions(+), 1 deletion(-) diff --git a/components/status/StatusActions.vue b/components/status/StatusActions.vue index 328d8fdf..b7ec40b1 100644 --- a/components/status/StatusActions.vue +++ b/components/status/StatusActions.vue @@ -105,7 +105,7 @@ const reply = () => { -
+
{ @click="toggleBookmark()" />
+ + + + diff --git a/locales/en-US.json b/locales/en-US.json index 7098ea30..30db756a 100644 --- a/locales/en-US.json +++ b/locales/en-US.json @@ -53,6 +53,7 @@ "favourite": "Favorite", "favourite_count": "{0}", "favourited": "Favorited", + "local_only": "Local only", "more": "More", "next": "Next", "prev": "Prev",