feat(pref): add ability to hide NSFW content

This commit is contained in:
2025-11-19 12:28:26 -03:00
parent 644cda63a0
commit 5a79ec025a
8 changed files with 19 additions and 2 deletions

View File

@@ -277,6 +277,9 @@ proc renderTweet*(tweet: Tweet; prefs: Prefs; path: string; class=""; index=0;
if index == -1 or last:
divClass = "thread-last " & class
if tweet.sensitive:
divClass.add " nsfw"
if not tweet.available:
return buildHtml(tdiv(class=divClass & "unavailable timeline-item")):
tdiv(class="unavailable-box"):