Feat: document new hide boots setting

This commit is contained in:
vdyotte 2024-09-24 15:45:13 -04:00
commit 4b7d7f9b8b
No known key found for this signature in database
GPG key ID: B170DEDABC527E66
5 changed files with 12 additions and 9 deletions

View file

@ -447,7 +447,7 @@ func (suite *StatusCreateTestSuite) TestPostNewStatusMessedUpIntPolicy() {
suite.Equal(http.StatusBadRequest, recorder.Code)
// We should have a helpful error
// message telling us how we screwed up.
// message telling us how we screwed up.
suite.Equal(`{
"error": "Bad Request: error converting followers_only.can_reply.always: policyURI public is not feasible for visibility followers_only"
}`, out)

View file

@ -38,7 +38,7 @@ const (
exampleURI = "https://social.bbc/users/ItsMePrinceCharlesInit"
exampleText = `
oh no me nan's gone and done it :shocked:
she fuckin killed the king :regicide:
nan what have you done :shocked:
@ -277,7 +277,6 @@ func sizeofAccountSettings() uintptr {
StatusContentType: "text/plain",
CustomCSS: exampleText,
EnableRSS: util.Ptr(true),
HideBoosts: util.Ptr(false),
HideCollections: util.Ptr(false),
}))
}

View file

@ -123,8 +123,8 @@ func (p *Processor) GetRSSFeedForUsername(ctx context.Context, username string)
}
// Add each status to the rss feed.
for _, s := range statuses {
item, err := p.converter.StatusToRSSItem(ctx, s)
for _, status := range statuses {
item, err := p.converter.StatusToRSSItem(ctx, status)
if err != nil {
err = gtserror.Newf("error converting status to feed item: %w", err)
return "", gtserror.NewErrorInternalError(err)

View file

@ -184,7 +184,6 @@ func (p *Processor) WebStatusesGet(
log.Errorf(ctx, "error convering to web status: %v", err)
continue
}
items = append(items, item)
}