allow to navigate to deleted posts

This commit is contained in:
Hendrik L 2024-12-27 20:35:53 +01:00
parent d348bb5973
commit df3994e484

View file

@ -17,7 +17,7 @@
<div class="row">
<div class="col-12 hidable">
{% if post_reply.post.deleted: -%}
reply to: [deleted post]
reply to: <a href="{{ url_for('activitypub.post_ap', post_id=post_reply.post.id, _anchor='comment_' + str(post_reply.id)) }}">[deleted post]</a>
{% else -%}
reply to: <a href="{{ url_for('activitypub.post_ap', post_id=post_reply.post.id, _anchor='comment_' + str(post_reply.id)) }}">{{ post_reply.post.title | truncate(80, True) }}</a>
{% endif -%}