this repo has no description
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

Fix wrong count

+15 -13
+7 -5
src/components/notification.jsx
··· 381 381 <b {...props} /> 382 382 ); 383 383 384 + const diffCount = 385 + notificationsCount > 0 && notificationsCount > sampleAccounts?.length; 386 + const expandAccounts = diffCount ? 'remote' : 'local'; 387 + 384 388 if (typeof text === 'function') { 385 389 const count = 386 390 (type === 'favourite' || type === 'reblog') && notificationsCount 387 - ? notificationsCount 391 + ? diffCount 392 + ? notificationsCount 393 + : sampleAccounts?.length 388 394 : _accounts?.length || sampleAccounts?.length || (account ? 1 : 0); 389 395 const postsCount = _statuses?.length || (status ? 1 : 0); 390 396 if (type === 'admin.report') { ··· 458 464 }; 459 465 460 466 console.debug('RENDER Notification', notification.id); 461 - 462 - const diffCount = 463 - notificationsCount > 0 && notificationsCount > sampleAccounts?.length; 464 - const expandAccounts = diffCount ? 'remote' : 'local'; 465 467 466 468 // If there's a status and filter action is 'hide', then the notification is hidden 467 469 if (!!status?.filtered) {
+8 -8
src/locales/en.po
··· 1661 1661 msgid "[Unknown notification type: {type}]" 1662 1662 msgstr "" 1663 1663 1664 - #: src/components/notification.jsx:445 1664 + #: src/components/notification.jsx:451 1665 1665 #: src/components/status.jsx:1115 1666 1666 #: src/components/status.jsx:1125 1667 1667 msgid "Boosted/Liked by…" 1668 1668 msgstr "" 1669 1669 1670 - #: src/components/notification.jsx:446 1670 + #: src/components/notification.jsx:452 1671 1671 msgid "Liked by…" 1672 1672 msgstr "" 1673 1673 1674 - #: src/components/notification.jsx:447 1674 + #: src/components/notification.jsx:453 1675 1675 msgid "Boosted by…" 1676 1676 msgstr "" 1677 1677 1678 - #: src/components/notification.jsx:448 1678 + #: src/components/notification.jsx:454 1679 1679 msgid "Followed by…" 1680 1680 msgstr "" 1681 1681 1682 - #: src/components/notification.jsx:533 1683 - #: src/components/notification.jsx:549 1682 + #: src/components/notification.jsx:535 1683 + #: src/components/notification.jsx:551 1684 1684 msgid "Learn more <0/>" 1685 1685 msgstr "" 1686 1686 1687 - #: src/components/notification.jsx:558 1687 + #: src/components/notification.jsx:560 1688 1688 msgid "View #Wrapstodon" 1689 1689 msgstr "View #Wrapstodon" 1690 1690 1691 - #: src/components/notification.jsx:799 1691 + #: src/components/notification.jsx:801 1692 1692 #: src/components/status.jsx:328 1693 1693 msgid "Read more →" 1694 1694 msgstr ""