1
0
mirror of https://gitlab.com/brutaldon/brutaldon synced 2024-12-27 08:15:26 +01:00

Added local-only toot display support

If the API returns a toot with the local_only property set to true:
Adds a "(local only)" text to the visibility.
Tested to work on Glitch-Soc and Hometown, and not break on Vanilla
This commit is contained in:
Zac Bohon 2021-08-02 16:50:38 -05:00
parent 6d7d8d936a
commit cdc199532d

View File

@ -214,7 +214,11 @@
delete
</a>
{% endif %}
{% if toot.local_only %}
{{ toot.visibility }} (local-only)
{% else %}
{{ toot.visibility }}
{% endif %}
&nbsp;&nbsp;
{% if toot.in_reply_to_id or toot.replies_count > 0 %}
<a class="level-item" href="{% url "thread" toot.id %}#toot-{{ toot.id }}">