diff --git a/src/intl/en-US.js b/src/intl/en-US.js index 02825bd4..d3744d35 100644 --- a/src/intl/en-US.js +++ b/src/intl/en-US.js @@ -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', diff --git a/src/routes/_a11y/getAccessibleLabelForStatus.js b/src/routes/_a11y/getAccessibleLabelForStatus.js index bb418c31..f9882ce7 100644 --- a/src/routes/_a11y/getAccessibleLabelForStatus.js +++ b/src/routes/_a11y/getAccessibleLabelForStatus.js @@ -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 }) } } diff --git a/src/routes/_components/status/Status.html b/src/routes/_components/status/Status.html index c824cded..a919aeae 100644 --- a/src/routes/_components/status/Status.html +++ b/src/routes/_components/status/Status.html @@ -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' ), diff --git a/src/routes/_components/status/StatusHeader.html b/src/routes/_components/status/StatusHeader.html index 44d25932..69853446 100644 --- a/src/routes/_components/status/StatusHeader.html +++ b/src/routes/_components/status/StatusHeader.html @@ -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 '' }