mirror of
https://gitlab.com/brutaldon/brutaldon
synced 2025-04-16 19:37:20 +02:00
Fix emojos in display names in notifications
This commit is contained in:
parent
0604ddffe6
commit
eaf0cbd46b
@ -1,6 +1,7 @@
|
|||||||
{% extends "base.html" %}
|
{% extends "base.html" %}
|
||||||
{% load humanetime %}
|
{% load humanetime %}
|
||||||
{% load taglinks %}
|
{% load taglinks %}
|
||||||
|
{% load sanitizer %}
|
||||||
|
|
||||||
{% block title %}
|
{% block title %}
|
||||||
Brutaldon ({{ own_acct.username }}) - Notifications timelime
|
Brutaldon ({{ own_acct.username }}) - Notifications timelime
|
||||||
@ -27,7 +28,7 @@ mastodon.notifications()[0]
|
|||||||
{% if group.0.type == 'favourite' %}
|
{% if group.0.type == 'favourite' %}
|
||||||
<p>
|
<p>
|
||||||
{% for account in group.accounts %}
|
{% for account in group.accounts %}
|
||||||
{% include "comma.html" %}{{ account.display_name }}
|
{% include "comma.html" %}{{ account.display_name | fix_emojos:account.emojis |strip_html |safe }}
|
||||||
(<a href="{{ account.url | localuser}}">{{ account.acct }}</a>)
|
(<a href="{{ account.url | localuser}}">{{ account.acct }}</a>)
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
favorited your toot.
|
favorited your toot.
|
||||||
@ -37,7 +38,7 @@ mastodon.notifications()[0]
|
|||||||
{% elif group.0.type == 'reblog' %}
|
{% elif group.0.type == 'reblog' %}
|
||||||
<p>
|
<p>
|
||||||
{% for account in group.accounts %}
|
{% for account in group.accounts %}
|
||||||
{% include "comma.html" %}{{ account.display_name }}
|
{% include "comma.html" %}{{ account.display_name | fix_emojos:account.emojis |strip_html |safe }}
|
||||||
(<a href="{{ account.url | localuser }}">{{ account.acct }}</a>)
|
(<a href="{{ account.url | localuser }}">{{ account.acct }}</a>)
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
boosted your toot.
|
boosted your toot.
|
||||||
@ -49,7 +50,7 @@ mastodon.notifications()[0]
|
|||||||
{% for note in group %}
|
{% for note in group %}
|
||||||
{% if note.type == 'mention' %}
|
{% if note.type == 'mention' %}
|
||||||
<p>
|
<p>
|
||||||
<strong>{{ note.account.display_name }}</strong>
|
<strong>{{ note.account.display_name | fix_emojos:note.account.emojis |strip_html |safe }}</strong>
|
||||||
(<a href="{{ note.account.url | localuser }}">{{ note.account.acct }}</a>)
|
(<a href="{{ note.account.url | localuser }}">{{ note.account.acct }}</a>)
|
||||||
mentioned you.
|
mentioned you.
|
||||||
</p>
|
</p>
|
||||||
@ -58,7 +59,7 @@ mastodon.notifications()[0]
|
|||||||
<hr class="is-hidden">
|
<hr class="is-hidden">
|
||||||
{% elif note.type == 'reblog' %}
|
{% elif note.type == 'reblog' %}
|
||||||
<p>
|
<p>
|
||||||
{{ note.account.display_name }}
|
{{ note.account.display_name | fix_emojos:note.account.emojis |strip_html |safe }}
|
||||||
(<a href="{{ note.account.url | localuser }}">{{ note.account.acct }}</a>)
|
(<a href="{{ note.account.url | localuser }}">{{ note.account.acct }}</a>)
|
||||||
boosted your toot.
|
boosted your toot.
|
||||||
(<span>
|
(<span>
|
||||||
@ -69,7 +70,7 @@ mastodon.notifications()[0]
|
|||||||
<hr class="is-hidden">
|
<hr class="is-hidden">
|
||||||
{% elif note.type == 'favourite' %}
|
{% elif note.type == 'favourite' %}
|
||||||
<p>
|
<p>
|
||||||
{{ note.account.display_name }}
|
{{ note.account.display_name | fix_emojos:note.account.emojis |strip_html |safe }}
|
||||||
(<a href="{{ note.account.url | localuser}}">{{ note.account.acct }}</a>)
|
(<a href="{{ note.account.url | localuser}}">{{ note.account.acct }}</a>)
|
||||||
favorited your toot.
|
favorited your toot.
|
||||||
(<span>
|
(<span>
|
||||||
@ -87,7 +88,7 @@ mastodon.notifications()[0]
|
|||||||
</figure>
|
</figure>
|
||||||
<div class="media-content" >
|
<div class="media-content" >
|
||||||
<div class="content">
|
<div class="content">
|
||||||
<strong>{{ note.account.display_name }}</strong>
|
<strong>{{ note.account.display_name | fix_emojos:note.account.emojis |strip_html |safe }}</strong>
|
||||||
(<a href="{{ note.account.url |localuser }}">{{ note.account.acct }}</a>)
|
(<a href="{{ note.account.url |localuser }}">{{ note.account.acct }}</a>)
|
||||||
followed you.
|
followed you.
|
||||||
(<a href="{{ note.url }}">
|
(<a href="{{ note.url }}">
|
||||||
|
Loading…
x
Reference in New Issue
Block a user