mirror of
https://github.com/ihabunek/toot
synced 2025-01-10 16:52:40 +01:00
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).
This commit is contained in:
parent
2e55ddbe7e
commit
f394d78c1e
@ -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)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user