1
0
mirror of https://github.com/ihabunek/toot.git synced 2024-11-03 04:17:21 -05:00

Boosted by improvements

This commit is contained in:
Ivan Habunek 2019-08-25 10:00:48 +02:00
parent dd1b462413
commit 2d8199646f
No known key found for this signature in database
GPG Key ID: CDBD63C43A30BB95

View File

@ -104,14 +104,13 @@ class StatusDetails(urwid.Pile):
def content_generator(self, status):
if status.data["reblog"]:
yield urwid.Text([
("gray", "Reblogged by "),
("gray", status.data["account"]["display_name"])
])
boosted_by = status.data["account"]["display_name"]
yield urwid.Text(("gray", "{} boosted".format(boosted_by)))
yield urwid.AttrMap(urwid.Divider("-"), "gray")
if status.author.display_name:
yield urwid.Text(("green", status.author.display_name))
yield urwid.Text(("yellow", status.author.account))
yield urwid.Divider()