fix: improve toot edited notification (#2303)
This commit is contained in:
parent
4a6907bbdc
commit
3c32b48e29
|
@ -511,6 +511,7 @@ export default {
|
|||
rebloggedYou: 'boosted your toot',
|
||||
favoritedYou: 'favorited your toot',
|
||||
followedYou: 'followed you',
|
||||
edited: 'edited their toot',
|
||||
signedUp: 'signed up',
|
||||
posted: 'posted',
|
||||
pollYouCreatedEnded: 'A poll you created has ended',
|
||||
|
@ -526,6 +527,7 @@ export default {
|
|||
// Accessible status labels
|
||||
accountRebloggedYou: '{account} boosted your toot',
|
||||
accountFavoritedYou: '{account} favorited your toot',
|
||||
accountEdited: '{account} edited their toot',
|
||||
rebloggedByAccount: 'Boosted by {account}',
|
||||
contentWarningContent: 'Content warning: {spoiler}',
|
||||
hasMedia: 'has media',
|
||||
|
|
|
@ -11,6 +11,8 @@ function getNotificationText (notification, omitEmojiInDisplayNames) {
|
|||
return formatIntl('intl.accountRebloggedYou', { account: notificationAccountDisplayName })
|
||||
} else if (notification.type === 'favourite') {
|
||||
return formatIntl('intl.accountFavoritedYou', { account: notificationAccountDisplayName })
|
||||
} else if (notification.type === 'update') {
|
||||
return formatIntl('intl.accountEdited', { account: notificationAccountDisplayName })
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -309,7 +309,7 @@
|
|||
)
|
||||
),
|
||||
showHeader: ({ notification, status, timelineType }) => (
|
||||
(notification && ['reblog', 'favourite', 'poll', 'status'].includes(notification.type)) ||
|
||||
(notification && ['reblog', 'favourite', 'poll', 'status', 'update'].includes(notification.type)) ||
|
||||
status.reblog ||
|
||||
timelineType === 'pinned'
|
||||
),
|
||||
|
|
|
@ -137,6 +137,8 @@
|
|||
return '#fa-comment'
|
||||
} else if (notificationType === 'admin.sign_up') {
|
||||
return '#fa-user-plus'
|
||||
} else if (notificationType === 'update') {
|
||||
return '#fa-pencil'
|
||||
}
|
||||
return '#fa-star'
|
||||
},
|
||||
|
@ -159,6 +161,8 @@
|
|||
}
|
||||
} else if (status && status.reblog) {
|
||||
return 'intl.reblogged'
|
||||
} else if (notificationType === 'update') {
|
||||
return 'intl.edited'
|
||||
} else {
|
||||
return ''
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue