Revert HTML CW changes (#3020)
* selectively Revert "Fix regressions from #2683 (#2970)" This reverts commit72698bc3b4
. * Revert "Handle hashtags in spoiler_texts (partial fix for #699) (#2683)" This reverts commite2491680e6
.
This commit is contained in:
parent
1d5dcfcd46
commit
3dcb5fa28f
8 changed files with 11 additions and 18 deletions
|
@ -53,7 +53,7 @@ export function updateNotifications(notification, intlMessages, intlLocale) {
|
|||
// Desktop notifications
|
||||
if (typeof window.Notification !== 'undefined' && showAlert) {
|
||||
const title = new IntlMessageFormat(intlMessages[`notification.${notification.type}`], intlLocale).format({ name: notification.account.display_name.length > 0 ? notification.account.display_name : notification.account.username });
|
||||
const body = (notification.status && notification.status.spoiler_text.length > 0) ? unescapeHTML(notification.status.spoiler_text) : unescapeHTML(notification.status ? notification.status.content : '');
|
||||
const body = (notification.status && notification.status.spoiler_text.length > 0) ? notification.status.spoiler_text : unescapeHTML(notification.status ? notification.status.content : '');
|
||||
|
||||
const notify = new Notification(title, { body, icon: notification.account.avatar, tag: notification.id });
|
||||
notify.addEventListener('click', () => {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue