Template fixes

main
Thomas Sileo 2022-07-21 21:56:59 +02:00
parent dbbfe4f788
commit a95dee9ef0
2 changed files with 2 additions and 2 deletions

View File

@ -8,7 +8,7 @@
{% macro actor_action(inbox_object, text) %}
<div class="actor-action">
<a href="{{ url_for("admin_profile") }}?actor_id={{ inbox_object.actor.ap_id }}">{{ inbox_object.actor.display_name }}</a> {{ text }}
<a href="{{ url_for("admin_profile") }}?actor_id={{ inbox_object.actor.ap_id }}">{{ inbox_object.actor.display_name | clean_html(inbox_object.actor) | safe }}</a> {{ text }}
<span>{{ inbox_object.ap_published_at | timeago }}</span>
</div>

View File

@ -23,7 +23,7 @@
</div>
{{ utils.display_actor(notif.actor, actors_metadata) }}
{% elif notif.notification_type.value == "like" %}
<di vclass="actor-action" title="{{ notif.created_at.isoformat() }}">
<div class="actor-action" title="{{ notif.created_at.isoformat() }}">
<a style="font-weight:bold;" href="{{ notif.actor.url }}">{{ notif.actor.display_name }}</a> liked a post
</div>
{{ utils.display_object(notif.outbox_object) }}