mirror of
https://github.com/superseriousbusiness/gotosocial.git
synced 2025-12-31 10:26:17 -06:00
improvements to caching for lists and relationship to accounts / follows
This commit is contained in:
parent
71261c62c2
commit
002bd86a39
27 changed files with 1002 additions and 1333 deletions
|
|
@ -189,7 +189,7 @@ func (p *Processor) GetAPIStatus(
|
|||
// such invalidation will, in that case, be handled by the processor instead.
|
||||
func (p *Processor) InvalidateTimelinedStatus(ctx context.Context, accountID string, statusID string) error {
|
||||
// Get lists first + bail if this fails.
|
||||
lists, err := p.state.DB.GetListsForAccountID(ctx, accountID)
|
||||
lists, err := p.state.DB.GetListsByAccountID(ctx, accountID)
|
||||
if err != nil {
|
||||
return gtserror.Newf("db error getting lists for account %s: %w", accountID, err)
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue