mirror of
https://github.com/ihabunek/toot
synced 2024-12-23 07:27:12 +01:00
Use original account information for reblogged statuses
Otherwise, we get the account name of reblogger in the timeline.
This commit is contained in:
parent
2e3479c012
commit
e06478a798
@ -42,7 +42,9 @@ class Status:
|
||||
return Author(acct, data['account']['display_name'])
|
||||
|
||||
def get_account(self):
|
||||
acct = self.data['account']['acct']
|
||||
reblog = self.data.get("reblog")
|
||||
account = reblog['account'] if reblog else self.data['account']
|
||||
acct = account['acct']
|
||||
return acct if "@" in acct else "{}@{}".format(acct, self.default_instance)
|
||||
|
||||
def __repr__(self):
|
||||
|
Loading…
Reference in New Issue
Block a user