mirror of
https://github.com/superseriousbusiness/gotosocial.git
synced 2026-01-06 15:03:17 -06:00
[feature] tentatively start adding polls support (#2249)
This commit is contained in:
parent
297b6eeaaa
commit
c6e00afc7c
36 changed files with 657 additions and 393 deletions
|
|
@ -65,7 +65,7 @@ func (t *timeline) indexXBetweenIDs(ctx context.Context, amount int, behindID st
|
|||
)
|
||||
|
||||
for e := t.items.data.Front(); e != nil; e = e.Next() {
|
||||
entry := e.Value.(*indexedItemsEntry) //nolint:forcetypeassert
|
||||
entry := e.Value.(*indexedItemsEntry)
|
||||
|
||||
position++
|
||||
|
||||
|
|
@ -174,7 +174,6 @@ func (t *timeline) grab(ctx context.Context, amount int, behindID string, before
|
|||
// Don't grab more than we need to.
|
||||
amount-grabbed,
|
||||
)
|
||||
|
||||
if err != nil {
|
||||
// Grab function already checks for
|
||||
// db.ErrNoEntries, so if an error
|
||||
|
|
@ -280,5 +279,5 @@ func (t *timeline) OldestIndexedItemID() string {
|
|||
return ""
|
||||
}
|
||||
|
||||
return e.Value.(*indexedItemsEntry).itemID //nolint:forcetypeassert
|
||||
return e.Value.(*indexedItemsEntry).itemID
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue