mirror of
https://github.com/superseriousbusiness/gotosocial.git
synced 2026-01-03 05:13:16 -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
|
|
@ -98,7 +98,7 @@ func (p *Processor) ExportLists(
|
|||
ctx context.Context,
|
||||
requester *gtsmodel.Account,
|
||||
) ([][]string, gtserror.WithCode) {
|
||||
lists, err := p.state.DB.GetListsForAccountID(ctx, requester.ID)
|
||||
lists, err := p.state.DB.GetListsByAccountID(ctx, requester.ID)
|
||||
if err != nil && !errors.Is(err, db.ErrNoEntries) {
|
||||
err = gtserror.Newf("db error getting lists: %w", err)
|
||||
return nil, gtserror.NewErrorInternalError(err)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue