mirror of
https://github.com/superseriousbusiness/gotosocial.git
synced 2025-12-07 08:08:08 -06:00
[chore] tidy + test timelines a bit better (#1865)
* [chore] tidy + test timelines a bit better * thanks linter
This commit is contained in:
parent
186e849dbf
commit
97bc2e713a
12 changed files with 685 additions and 479 deletions
|
|
@ -20,7 +20,8 @@ package timeline
|
|||
import (
|
||||
"container/list"
|
||||
"context"
|
||||
"fmt"
|
||||
|
||||
"github.com/superseriousbusiness/gotosocial/internal/gtserror"
|
||||
)
|
||||
|
||||
type indexedItems struct {
|
||||
|
|
@ -84,7 +85,7 @@ func (i *indexedItems) insertIndexed(ctx context.Context, newEntry *indexedItems
|
|||
currentEntry.boostOfAccountID,
|
||||
currentPosition,
|
||||
); err != nil {
|
||||
return false, fmt.Errorf("insertIndexed: error calling skipInsert: %w", err)
|
||||
return false, gtserror.Newf("error calling skipInsert: %w", err)
|
||||
} else if skip {
|
||||
// We don't need to insert this at all,
|
||||
// so we can safely bail.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue