From 05972fc6fac378de258436bbe1e0d5c19e2f59cc Mon Sep 17 00:00:00 2001 From: Ivan Habunek Date: Sat, 31 Aug 2019 15:05:50 +0200 Subject: [PATCH] Show application used to post status --- toot/tui/timeline.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/toot/tui/timeline.py b/toot/tui/timeline.py index 7adf3a8..a06a6f4 100644 --- a/toot/tui/timeline.py +++ b/toot/tui/timeline.py @@ -232,11 +232,15 @@ class StatusDetails(urwid.Pile): yield ("pack", urwid.Divider()) yield ("pack", self.build_linebox(self.card_generator(card))) + application = status.data.get("application") or {} + application = application.get("name") + yield ("pack", urwid.AttrWrap(urwid.Divider("-"), "gray")) yield ("pack", urwid.Text([ ("gray", "⤶ {} ".format(status.data["replies_count"])), ("yellow" if status.reblogged else "gray", "♺ {} ".format(status.data["reblogs_count"])), ("yellow" if status.favourited else "gray", "★ {}".format(status.data["favourites_count"])), + ("gray", " · {}".format(application) if application else ""), ])) # Push things to bottom