[feature] Option to hide followers/following (#2788)

This commit is contained in:
tobi
2024-04-02 11:42:24 +02:00
committed by GitHub
parent 29972e2c93
commit f05874be30
19 changed files with 322 additions and 83 deletions

View File

@@ -284,6 +284,10 @@ func (p *Processor) Update(ctx context.Context, account *gtsmodel.Account, form
account.Settings.EnableRSS = form.EnableRSS
}
if form.HideCollections != nil {
account.Settings.HideCollections = form.HideCollections
}
if err := p.state.DB.UpdateAccount(ctx, account); err != nil {
return nil, gtserror.NewErrorInternalError(fmt.Errorf("could not update account %s: %s", account.ID, err))
}