From cdc199532dd49627325269d896f8b33d58c59052 Mon Sep 17 00:00:00 2001 From: Zac Bohon Date: Mon, 2 Aug 2021 16:50:38 -0500 Subject: [PATCH] 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 --- brutaldon/templates/main/toot_partial.html | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/brutaldon/templates/main/toot_partial.html b/brutaldon/templates/main/toot_partial.html index 2dfca7c..00d88f5 100644 --- a/brutaldon/templates/main/toot_partial.html +++ b/brutaldon/templates/main/toot_partial.html @@ -214,7 +214,11 @@ delete {% endif %} - {{ toot.visibility }} + {% if toot.local_only %} + {{ toot.visibility }} (local-only) + {% else %} + {{ toot.visibility }} + {% endif %}    {% if toot.in_reply_to_id or toot.replies_count > 0 %}