From bbe87c4743724ece16d565a6bb379b3fb4ff5b12 Mon Sep 17 00:00:00 2001 From: notfire Date: Wed, 22 Oct 2025 17:08:07 -0400 Subject: [PATCH] add bite back support, cleanup --- README.md | 4 +--- src/components/notification/notification.js | 4 ++++ src/components/notification/notification.vue | 20 ++++++++++++++++++- src/i18n/en.json | 2 ++ src/services/api/api.service.js | 10 +++++++++- .../entity_normalizer.service.js | 5 +++++ .../notification_utils/notification_utils.js | 4 ++++ 7 files changed, 44 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index bcac27c9..5aedd604 100644 --- a/README.md +++ b/README.md @@ -50,9 +50,7 @@ - download by entering `tools/` and running `python3 download_ruffle.py` ### also of note for anyone running this fork -- aside from the stuff mentioned above, the following features will require patches to work: - - mfm ([patch](https://git.notfire.cc/notfire/iceshrimp-patches/src/branch/main/0004-mfm-in-mastoapi.patch)) - - previewing posts ([patch](https://git.notfire.cc/notfire/iceshrimp-patches/src/branch/main/0005-previews-in-mastoapi.patch)) +n/a --- diff --git a/src/components/notification/notification.js b/src/components/notification/notification.js index d083aea2..34b317f7 100644 --- a/src/components/notification/notification.js +++ b/src/components/notification/notification.js @@ -136,6 +136,10 @@ const Notification = { }) return isFiltered + }, + biteBack () { + let id = this.notification.bite_back_id + return this.$store.state.api.backendInteractor.biteBack({ id }) } }, computed: { diff --git a/src/components/notification/notification.vue b/src/components/notification/notification.vue index 93cbdf27..175c1206 100644 --- a/src/components/notification/notification.vue +++ b/src/components/notification/notification.vue @@ -111,7 +111,7 @@ {{ ' ' }} {{ $t('notifications.follow_request') }} - + {{ $t('notifications.bit_note') }} + + + {{ ' ' }} + {{ $t('notifications.bit_back') }} + +