Boostrap custom emoji support

This commit is contained in:
Thomas Sileo
2022-06-26 10:01:26 +02:00
parent 1f67d4e71c
commit b977b64bfb
4 changed files with 36 additions and 8 deletions

View File

@@ -9,6 +9,6 @@
{% if ap_object and ap_object.ap_type == "Person" %}
{{ utils.display_actor(ap_object, actors_metadata) }}
{% elif ap_object %}
{{ utils.display_object(ap_object) }}
{{ utils.display_object_expanded(ap_object) }}
{% endif %}
{% endblock %}

View File

@@ -114,7 +114,7 @@
{{ display_actor(object.actor, {}) }}
<div>
{{ object.content | clean_html | safe }}
{{ object.content | clean_html(object) | safe }}
</div>
<a href="{{ object.url }}">{{ object.ap_published_at | format_date }}</a>
@@ -145,7 +145,7 @@
<a href="{{ object.url }}">{{ object.ap_published_at | timeago }}</a>
</span>
<div class="activity-main">
{{ object.content | clean_html | safe }}
{{ object.content | clean_html(object) | safe }}
</div>
</div>
</div>