diff --git a/src/components/notification.jsx b/src/components/notification.jsx index 0ba00829..ab7e8acd 100644 --- a/src/components/notification.jsx +++ b/src/components/notification.jsx @@ -381,10 +381,16 @@ function Notification({ ); + const diffCount = + notificationsCount > 0 && notificationsCount > sampleAccounts?.length; + const expandAccounts = diffCount ? 'remote' : 'local'; + if (typeof text === 'function') { const count = (type === 'favourite' || type === 'reblog') && notificationsCount - ? notificationsCount + ? diffCount + ? notificationsCount + : sampleAccounts?.length : _accounts?.length || sampleAccounts?.length || (account ? 1 : 0); const postsCount = _statuses?.length || (status ? 1 : 0); if (type === 'admin.report') { @@ -459,10 +465,6 @@ function Notification({ console.debug('RENDER Notification', notification.id); - const diffCount = - notificationsCount > 0 && notificationsCount > sampleAccounts?.length; - const expandAccounts = diffCount ? 'remote' : 'local'; - // If there's a status and filter action is 'hide', then the notification is hidden if (!!status?.filtered) { const isOwnPost = status?.account?.id === currentAccount; diff --git a/src/locales/en.po b/src/locales/en.po index 54986c86..36683508 100644 --- a/src/locales/en.po +++ b/src/locales/en.po @@ -1661,34 +1661,34 @@ msgstr "" msgid "[Unknown notification type: {type}]" msgstr "" -#: src/components/notification.jsx:445 +#: src/components/notification.jsx:451 #: src/components/status.jsx:1115 #: src/components/status.jsx:1125 msgid "Boosted/Liked by…" msgstr "" -#: src/components/notification.jsx:446 +#: src/components/notification.jsx:452 msgid "Liked by…" msgstr "" -#: src/components/notification.jsx:447 +#: src/components/notification.jsx:453 msgid "Boosted by…" msgstr "" -#: src/components/notification.jsx:448 +#: src/components/notification.jsx:454 msgid "Followed by…" msgstr "" -#: src/components/notification.jsx:533 -#: src/components/notification.jsx:549 +#: src/components/notification.jsx:535 +#: src/components/notification.jsx:551 msgid "Learn more <0/>" msgstr "" -#: src/components/notification.jsx:558 +#: src/components/notification.jsx:560 msgid "View #Wrapstodon" msgstr "View #Wrapstodon" -#: src/components/notification.jsx:799 +#: src/components/notification.jsx:801 #: src/components/status.jsx:328 msgid "Read more →" msgstr ""