diff --git a/src/components/notification.jsx b/src/components/notification.jsx index 6467eb68..e0e2e5e8 100644 --- a/src/components/notification.jsx +++ b/src/components/notification.jsx @@ -61,6 +61,8 @@ const contentText = { 'admin.report': 'reported a post.', }; +const AVATARS_LIMIT = 50; + function Notification({ notification, instance, reload, isStatic }) { const { id, status, account, _accounts, _statuses } = notification; let { type } = notification; @@ -207,7 +209,7 @@ function Notification({ notification, instance, reload, isStatic }) { )} {_accounts?.length > 1 && (

- {_accounts.slice(0, 50).map((account, i) => ( + {_accounts.slice(0, AVATARS_LIMIT).map((account, i) => ( <> + {_accounts.length > AVATARS_LIMIT && + `+${_accounts.length - AVATARS_LIMIT}`}