[bugfix] add missing "local" param in public timeline link headers (#2277)

This commit is contained in:
tobi 2023-10-18 12:32:40 +02:00 committed by GitHub
parent 77c5d74113
commit 805c67b759
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 0 deletions

View File

@ -20,6 +20,7 @@ package timeline
import (
"context"
"errors"
"strconv"
apimodel "github.com/superseriousbusiness/gotosocial/internal/api/model"
"github.com/superseriousbusiness/gotosocial/internal/db"
@ -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),
},
})
}