mirror of
https://github.com/ihabunek/toot.git
synced 2024-12-04 14:46:33 -05:00
Show application used to post status
This commit is contained in:
parent
7e04ad55c6
commit
05972fc6fa
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user