refs #160 Remove html tags in reply notification
This commit is contained in:
parent
dd4854c63b
commit
6f93dd2a9a
|
@ -227,8 +227,9 @@ function buildNotification (notification) {
|
|||
body: `${username(notification.account)} is now following you`
|
||||
})
|
||||
case 'mention':
|
||||
// Clean html tags
|
||||
return new Notification(`${notification.status.account.display_name}`, {
|
||||
body: `${notification.status.content}`
|
||||
body: `${notification.status.content.replace(/<("[^"]*"|'[^']*'|[^'">])*>/g, '')}`
|
||||
})
|
||||
case 'reblog':
|
||||
return new Notification('Reblog', {
|
||||
|
|
Loading…
Reference in New Issue