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