ensure blocking calls to getRemoteAccount before showing stuff to client

This commit is contained in:
tsmethurst 2022-01-25 13:48:13 +01:00
commit c156602c66
2 changed files with 99 additions and 4 deletions

View file

@ -89,7 +89,7 @@ func (d *deref) GetRemoteStatus(ctx context.Context, username string, remoteStat
}
// do this so we know we have the remote account of the status in the db
_, err = d.GetRemoteAccount(ctx, username, accountURI, false, false)
_, err = d.GetRemoteAccount(ctx, username, accountURI, true, false)
if err != nil {
return nil, statusable, new, fmt.Errorf("GetRemoteStatus: couldn't derive status author: %s", err)
}