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.
This commit is contained in:
Lim Ding Wen 2022-12-22 06:17:19 +08:00 committed by Ivan Habunek
parent fa6b90a115
commit 69718f41f6
No known key found for this signature in database
GPG Key ID: F5F0623FF5EBCB3D
1 changed files with 2 additions and 2 deletions

View File

@ -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")