kopia lustrzana https://github.com/cheeaun/phanpy
Fix wrong count
rodzic
4873cd5eb7
commit
2279594cf8
|
@ -381,10 +381,16 @@ function Notification({
|
|||
<b {...props} />
|
||||
);
|
||||
|
||||
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;
|
||||
|
|
|
@ -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 ""
|
||||
|
|
Ładowanie…
Reference in New Issue