Print visibility in CLI

I went with two spaces before and after but feel free to change that
to whatever! Having the visibility printed this way is pretty useful
for us who mostly read posts through the CLI.
pull/298/merge
Sandra Snan 2024-04-06 20:06:09 +02:00 zatwierdzone przez Ivan Habunek
rodzic 968a516f76
commit 7244b2718f
Nie znaleziono w bazie danych klucza dla tego podpisu
ID klucza GPG: F5F0623FF5EBCB3D
1 zmienionych plików z 1 dodań i 1 usunięć

Wyświetl plik

@ -219,7 +219,7 @@ def status_lines(status: Status) -> t.Generator[str, None, None]:
reply = f"↲ In reply to {yellow(in_reply_to_id)} " if in_reply_to_id else ""
boost = f"{blue(reblogged_by_acct)} boosted " if reblogged_by else ""
yield f"ID {yellow(status_id)} {reply} {boost}"
yield f"ID {yellow(status_id)} visibility: {status.visibility} {reply} {boost}"
def html_lines(html: str, width: int) -> t.Generator[str, None, None]: