1
0
Fork 0
mirror of https://github.com/cheeaun/phanpy.git synced 2025-02-21 01:30:42 +03:00

Hopefully fix missing account from emoji reaction notification

This commit is contained in:
Lim Chee Aun 2024-09-20 09:09:03 +08:00
parent bd029a5e4e
commit ebec0883aa
2 changed files with 13 additions and 9 deletions
src
components
locales

View file

@ -399,7 +399,11 @@ function Notification({
emoji?.shortcode === emoji?.shortcode ===
notification.emoji.replace(/^:/, '').replace(/:$/, ''), notification.emoji.replace(/^:/, '').replace(/:$/, ''),
); // Emoji object instead of string ); // Emoji object instead of string
text = text({ emoji: notification.emoji, emojiURL }); text = text({
account: <NameText account={account} showAvatar />,
emoji: notification.emoji,
emojiURL,
});
} else { } else {
text = text({ text = text({
account: account ? ( account: account ? (

16
src/locales/en.po generated
View file

@ -951,7 +951,7 @@ msgid "Nothing to show"
msgstr "" msgstr ""
#: src/components/generic-accounts.jsx:145 #: src/components/generic-accounts.jsx:145
#: src/components/notification.jsx:429 #: src/components/notification.jsx:433
#: src/pages/accounts.jsx:41 #: src/pages/accounts.jsx:41
#: src/pages/search.jsx:227 #: src/pages/search.jsx:227
#: src/pages/search.jsx:260 #: src/pages/search.jsx:260
@ -1488,30 +1488,30 @@ msgstr ""
msgid "[Unknown notification type: {type}]" msgid "[Unknown notification type: {type}]"
msgstr "" msgstr ""
#: src/components/notification.jsx:425 #: src/components/notification.jsx:429
#: src/components/status.jsx:938 #: src/components/status.jsx:938
#: src/components/status.jsx:948 #: src/components/status.jsx:948
msgid "Boosted/Liked by…" msgid "Boosted/Liked by…"
msgstr "" msgstr ""
#: src/components/notification.jsx:426 #: src/components/notification.jsx:430
msgid "Liked by…" msgid "Liked by…"
msgstr "" msgstr ""
#: src/components/notification.jsx:427 #: src/components/notification.jsx:431
msgid "Boosted by…" msgid "Boosted by…"
msgstr "" msgstr ""
#: src/components/notification.jsx:428 #: src/components/notification.jsx:432
msgid "Followed by…" msgid "Followed by…"
msgstr "" msgstr ""
#: src/components/notification.jsx:484 #: src/components/notification.jsx:488
#: src/components/notification.jsx:500 #: src/components/notification.jsx:504
msgid "Learn more <0/>" msgid "Learn more <0/>"
msgstr "" msgstr ""
#: src/components/notification.jsx:680 #: src/components/notification.jsx:684
#: src/components/status.jsx:190 #: src/components/status.jsx:190
msgid "Read more →" msgid "Read more →"
msgstr "" msgstr ""