|
|
|
|
@ -36,6 +36,7 @@ type Toot struct {
|
|
|
|
|
Boosts int |
|
|
|
|
Favorites int |
|
|
|
|
Edited bool |
|
|
|
|
Lang string |
|
|
|
|
Controls string |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
@ -120,6 +121,12 @@ func drawStatus(tv *TutView, item api.Item, status *mastodon.Status, main *tview
|
|
|
|
|
ShowSpoiler: showSensitive, |
|
|
|
|
CWlabel: cwToggle.Label, |
|
|
|
|
} |
|
|
|
|
for _, lang := range util.Languages { |
|
|
|
|
if status.Language == lang.Code { |
|
|
|
|
toot.Lang = lang.English |
|
|
|
|
break |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
toot.AccountDisplayName = tview.Escape(status.Account.DisplayName) |
|
|
|
|
toot.Account = tview.Escape(status.Account.Acct) |
|
|
|
|
|