Skip to content

Commit

Permalink
[bugfix] add missing "local" param in public timeline link headers (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
tsmethurst authored Oct 18, 2023
1 parent 77c5d74 commit 805c67b
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions internal/processing/timeline/public.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ package timeline
import (
"context"
"errors"
"strconv"

apimodel "github.com/superseriousbusiness/gotosocial/internal/api/model"
"github.com/superseriousbusiness/gotosocial/internal/db"
Expand Down Expand Up @@ -76,5 +77,8 @@ func (p *Processor) PublicTimelineGet(ctx context.Context, authed *oauth.Auth, m
NextMaxIDValue: nextMaxIDValue,
PrevMinIDValue: prevMinIDValue,
Limit: limit,
ExtraQueryParams: []string{
"local=" + strconv.FormatBool(local),
},
})
}

0 comments on commit 805c67b

Please sign in to comment.