mirror of
https://github.com/superseriousbusiness/gotosocial.git
synced 2025-10-29 11:22:25 -05:00
[bugfix/chore] Invalidate prepared statuses when account representation changes (#4107)
This pull requests adds logic to invalidate prepared statuses when an account's representation changes due to an update. Closes https://codeberg.org/superseriousbusiness/gotosocial/issues/4104 Reviewed-on: https://codeberg.org/superseriousbusiness/gotosocial/pulls/4107 Co-authored-by: tobi <tobi.smethurst@protonmail.com> Co-committed-by: tobi <tobi.smethurst@protonmail.com>
This commit is contained in:
parent
1bad36b637
commit
1480f22aea
3 changed files with 12 additions and 0 deletions
|
|
@ -811,6 +811,9 @@ func (p *fediAPI) UpdateAccount(ctx context.Context, fMsg *messages.FromFediAPI)
|
|||
log.Errorf(ctx, "error refreshing account: %v", err)
|
||||
}
|
||||
|
||||
// Account representation has changed, invalidate from timelines.
|
||||
p.surface.invalidateTimelineEntriesByAccount(account.ID)
|
||||
|
||||
return nil
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue