add reblogged account to known accounts

This commit is contained in:
sk 2023-03-14 14:58:21 +01:00
parent 4c85fd4387
commit 27c2791d6c
2 changed files with 4 additions and 0 deletions

View File

@ -117,6 +117,8 @@ public class NotificationsListFragment extends BaseStatusListFragment<Notificati
knownAccounts.put(s.account.id, s.account); knownAccounts.put(s.account.id, s.account);
if(s.status!=null && !knownAccounts.containsKey(s.status.account.id)) if(s.status!=null && !knownAccounts.containsKey(s.status.account.id))
knownAccounts.put(s.status.account.id, s.status.account); knownAccounts.put(s.status.account.id, s.status.account);
if(s.status!=null && s.status.reblog!=null && !knownAccounts.containsKey(s.status.reblog.account.id))
knownAccounts.put(s.status.reblog.account.id, s.status.reblog.account);
} }
@Override @Override

View File

@ -41,6 +41,8 @@ public abstract class StatusListFragment extends BaseStatusListFragment<Status>{
protected void addAccountToKnown(Status s){ protected void addAccountToKnown(Status s){
if(!knownAccounts.containsKey(s.account.id)) if(!knownAccounts.containsKey(s.account.id))
knownAccounts.put(s.account.id, s.account); knownAccounts.put(s.account.id, s.account);
if(s.reblog!=null && !knownAccounts.containsKey(s.reblog.account.id))
knownAccounts.put(s.reblog.account.id, s.reblog.account);
} }
@Override @Override