mirror of
https://github.com/ihabunek/toot
synced 2024-12-25 00:20:55 +01:00
Show if an account is a "bot", "locked", or "suspended"
This commit is contained in:
parent
a5d61c04a7
commit
5943ebda3a
@ -239,6 +239,17 @@ class Account(urwid.ListBox):
|
|||||||
yield urwid.Text([("ID: "), ("green", f"{account['id']}")])
|
yield urwid.Text([("ID: "), ("green", f"{account['id']}")])
|
||||||
yield urwid.Text([("Since: "), ("green", f"{account['created_at'][:10]}")])
|
yield urwid.Text([("Since: "), ("green", f"{account['created_at'][:10]}")])
|
||||||
yield urwid.Divider()
|
yield urwid.Divider()
|
||||||
|
|
||||||
|
if account["bot"]:
|
||||||
|
yield urwid.Text([("Bot: "), ("green", "True \N{robot face}")])
|
||||||
|
yield urwid.Divider()
|
||||||
|
if account["locked"]:
|
||||||
|
yield urwid.Text([("Locked: "), ("warning", "True \N{lock}")])
|
||||||
|
yield urwid.Divider()
|
||||||
|
if "suspended" in account and account["suspended"]:
|
||||||
|
yield urwid.Text([("Suspended: "), ("warning", "True \N{cross mark}")])
|
||||||
|
yield urwid.Divider()
|
||||||
|
|
||||||
yield urwid.Text([("Followers: "), ("yellow", f"{account['followers_count']}")])
|
yield urwid.Text([("Followers: "), ("yellow", f"{account['followers_count']}")])
|
||||||
yield urwid.Text([("Following: "), ("yellow", f"{account['following_count']}")])
|
yield urwid.Text([("Following: "), ("yellow", f"{account['following_count']}")])
|
||||||
yield urwid.Text([("Statuses: "), ("yellow", f"{account['statuses_count']}")])
|
yield urwid.Text([("Statuses: "), ("yellow", f"{account['statuses_count']}")])
|
||||||
|
Loading…
Reference in New Issue
Block a user