From f394d78c1e45b75ad4f2dd29cd8e267e73f6fd3e Mon Sep 17 00:00:00 2001 From: Lexi Winter Date: Sun, 31 Dec 2023 13:16:28 +0000 Subject: [PATCH] tui: keep CW note after opening toot Continue to display 'Marked as sensitive' in the toot view even after the CW has been opened. This matches the behaviour of other clients, and is useful to see because it might affect whether you want to boost the toot or not (for example). --- toot/tui/timeline.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/toot/tui/timeline.py b/toot/tui/timeline.py index 0cc7756..a14ada2 100644 --- a/toot/tui/timeline.py +++ b/toot/tui/timeline.py @@ -340,6 +340,9 @@ class StatusDetails(urwid.Pile): if status.data["spoiler_text"] and not status.show_sensitive: yield ("pack", urwid.Text(("content_warning", "Marked as sensitive. Press S to view."))) else: + if status.data["spoiler_text"]: + yield ("pack", urwid.Text(("content_warning", "Marked as sensitive."))) + content = status.original.translation if status.original.show_translation else status.data["content"] widgetlist = html_to_widgets(content)