From ebec0883aa9f6f3ebdbcfcdf25f220c041284ddb Mon Sep 17 00:00:00 2001 From: Lim Chee Aun Date: Fri, 20 Sep 2024 09:09:03 +0800 Subject: [PATCH] Hopefully fix missing account from emoji reaction notification --- src/components/notification.jsx | 6 +++++- src/locales/en.po | 16 ++++++++-------- 2 files changed, 13 insertions(+), 9 deletions(-) diff --git a/src/components/notification.jsx b/src/components/notification.jsx index d0602400..0e11662e 100644 --- a/src/components/notification.jsx +++ b/src/components/notification.jsx @@ -399,7 +399,11 @@ function Notification({ emoji?.shortcode === notification.emoji.replace(/^:/, '').replace(/:$/, ''), ); // Emoji object instead of string - text = text({ emoji: notification.emoji, emojiURL }); + text = text({ + account: , + emoji: notification.emoji, + emojiURL, + }); } else { text = text({ account: account ? ( diff --git a/src/locales/en.po b/src/locales/en.po index 5c9482f3..46955d6f 100644 --- a/src/locales/en.po +++ b/src/locales/en.po @@ -951,7 +951,7 @@ msgid "Nothing to show" msgstr "" #: src/components/generic-accounts.jsx:145 -#: src/components/notification.jsx:429 +#: src/components/notification.jsx:433 #: src/pages/accounts.jsx:41 #: src/pages/search.jsx:227 #: src/pages/search.jsx:260 @@ -1488,30 +1488,30 @@ msgstr "" msgid "[Unknown notification type: {type}]" msgstr "" -#: src/components/notification.jsx:425 +#: src/components/notification.jsx:429 #: src/components/status.jsx:938 #: src/components/status.jsx:948 msgid "Boosted/Liked by…" msgstr "" -#: src/components/notification.jsx:426 +#: src/components/notification.jsx:430 msgid "Liked by…" msgstr "" -#: src/components/notification.jsx:427 +#: src/components/notification.jsx:431 msgid "Boosted by…" msgstr "" -#: src/components/notification.jsx:428 +#: src/components/notification.jsx:432 msgid "Followed by…" msgstr "" -#: src/components/notification.jsx:484 -#: src/components/notification.jsx:500 +#: src/components/notification.jsx:488 +#: src/components/notification.jsx:504 msgid "Learn more <0/>" msgstr "" -#: src/components/notification.jsx:680 +#: src/components/notification.jsx:684 #: src/components/status.jsx:190 msgid "Read more →" msgstr ""