Show reaction emoji in notifications
This commit is contained in:
parent
bbc2f7ff5f
commit
2a98245414
1 changed files with 4 additions and 2 deletions
|
|
@ -456,8 +456,10 @@ export const parseNotification = (data) => {
|
|||
? null
|
||||
: parseUser(data.target)
|
||||
output.from_profile = parseUser(data.account)
|
||||
output.emoji = data.emoji
|
||||
output.emoji_url = data.emoji_url
|
||||
if (output.type === 'pleroma:emoji_reaction') {
|
||||
output.emoji = data.reaction.name
|
||||
output.emoji_url = data.reaction.url
|
||||
}
|
||||
} else {
|
||||
const parsedNotice = parseStatus(data.notice)
|
||||
output.type = data.ntype
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue