···3939 mention: 'mentioned you in their post.',
4040 status: 'published a post.',
4141 reblog: 'boosted your post.',
4242+ reblog_reply: 'boosted your reply.',
4243 follow: 'followed you.',
4344 follow_request: 'requested to follow you.',
4445 favourite: 'favourited your post.',
4646+ favourite_reply: 'favourited your reply.',
4547 poll: 'A poll you have voted in or created has ended.',
4648 'poll-self': 'A poll you have created has ended.',
4749 'poll-voted': 'A poll you have voted in has ended.',
4850 update: 'A post you interacted with has been edited.',
4951 'favourite+reblog': 'boosted & favourited your post.',
5252+ 'favourite+reblog_reply': 'boosted & favourited your reply.',
5053};
51545255function Notification({ notification, instance, reload }) {
···5962 const currentAccount = store.session.get('currentAccount');
6063 const isSelf = currentAccount === account?.id;
6164 const isVoted = status?.poll?.voted;
6565+ const isReplyToOthers =
6666+ !!status?.inReplyToAccountId &&
6767+ status?.inReplyToAccountId !== currentAccount &&
6868+ status?.account?.id === currentAccount;
62696370 let favsCount = 0;
6471 let reblogsCount = 0;
···7582 if (!favsCount && reblogsCount) type = 'reblog';
7683 }
77847878- const text =
7979- type === 'poll'
8080- ? contentText[isSelf ? 'poll-self' : isVoted ? 'poll-voted' : 'poll']
8181- : contentText[type];
8585+ let text;
8686+ if (type === 'poll') {
8787+ text = contentText[isSelf ? 'poll-self' : isVoted ? 'poll-voted' : 'poll'];
8888+ } else if (
8989+ type === 'reblog' ||
9090+ type === 'favourite' ||
9191+ type === 'favourite+reblog'
9292+ ) {
9393+ text =
9494+ contentText[isReplyToOthers ? `${type}_reply` : type] ||
9595+ contentText[type];
9696+ } else {
9797+ text = contentText[type];
9898+ }
829983100 if (type === 'mention' && !status) {
84101 // Could be deleted