Reply to original account instead of boosting account

Affects the "replying to" TUI label, and the mention auto-generated.
This brings it more in-line with Mastodon web behaviour.
pull/276/head
Lim Ding Wen 2022-12-22 06:17:19 +08:00 zatwierdzone przez Ivan Habunek
rodzic fa6b90a115
commit 69718f41f6
Nie znaleziono w bazie danych klucza dla tego podpisu
ID klucza GPG: F5F0623FF5EBCB3D
1 zmienionych plików z 2 dodań i 2 usunięć

Wyświetl plik

@ -46,7 +46,7 @@ class StatusComposer(urwid.Frame):
if not in_reply_to:
return ""
text = '@{} '.format(in_reply_to.account)
text = '@{} '.format(in_reply_to.original.account)
mentions = ['@{}'.format(m["acct"]) for m in in_reply_to.mentions]
if mentions:
text += '\n\n{}'.format(' '.join(mentions))
@ -61,7 +61,7 @@ class StatusComposer(urwid.Frame):
def generate_list_items(self):
if self.in_reply_to:
yield urwid.Text(("gray", "Replying to {}".format(self.in_reply_to.account)))
yield urwid.Text(("gray", "Replying to {}".format(self.in_reply_to.original.account)))
yield urwid.AttrWrap(urwid.Divider("-"), "gray")
yield urwid.Text("Status message")