From eaf0cbd46b97b03d820a725f92ed49956bbe6ddd Mon Sep 17 00:00:00 2001 From: Jason McBrayer Date: Wed, 6 Nov 2019 12:49:51 -0500 Subject: [PATCH] Fix emojos in display names in notifications --- brutaldon/templates/main/notifications.html | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/brutaldon/templates/main/notifications.html b/brutaldon/templates/main/notifications.html index 14bb9cc..3deab05 100644 --- a/brutaldon/templates/main/notifications.html +++ b/brutaldon/templates/main/notifications.html @@ -1,6 +1,7 @@ {% extends "base.html" %} {% load humanetime %} {% load taglinks %} +{% load sanitizer %} {% block title %} Brutaldon ({{ own_acct.username }}) - Notifications timelime @@ -27,7 +28,7 @@ mastodon.notifications()[0] {% if group.0.type == 'favourite' %}

{% for account in group.accounts %} - {% include "comma.html" %}{{ account.display_name }} + {% include "comma.html" %}{{ account.display_name | fix_emojos:account.emojis |strip_html |safe }} ({{ account.acct }}) {% endfor %} favorited your toot. @@ -37,7 +38,7 @@ mastodon.notifications()[0] {% elif group.0.type == 'reblog' %}

{% for account in group.accounts %} - {% include "comma.html" %}{{ account.display_name }} + {% include "comma.html" %}{{ account.display_name | fix_emojos:account.emojis |strip_html |safe }} ({{ account.acct }}) {% endfor %} boosted your toot. @@ -49,7 +50,7 @@ mastodon.notifications()[0] {% for note in group %} {% if note.type == 'mention' %}

- {{ note.account.display_name }} + {{ note.account.display_name | fix_emojos:note.account.emojis |strip_html |safe }} ({{ note.account.acct }}) mentioned you.

@@ -58,7 +59,7 @@ mastodon.notifications()[0] {% elif note.type == 'reblog' %}

- {{ note.account.display_name }} + {{ note.account.display_name | fix_emojos:note.account.emojis |strip_html |safe }} ({{ note.account.acct }}) boosted your toot. ( @@ -69,7 +70,7 @@ mastodon.notifications()[0]

{% elif note.type == 'favourite' %}

- {{ note.account.display_name }} + {{ note.account.display_name | fix_emojos:note.account.emojis |strip_html |safe }} ({{ note.account.acct }}) favorited your toot. ( @@ -87,7 +88,7 @@ mastodon.notifications()[0]

- {{ note.account.display_name }} + {{ note.account.display_name | fix_emojos:note.account.emojis |strip_html |safe }} ({{ note.account.acct }}) followed you. (