mirror of
https://github.com/superseriousbusiness/gotosocial.git
synced 2025-12-16 01:33:02 -06:00
[chore] Move local account settings to separate db table (#2770)
* [chore] Move local account settings to separate database model * don't use separate settings_id
This commit is contained in:
parent
0767647056
commit
7f4a0a1aeb
36 changed files with 525 additions and 191 deletions
|
|
@ -32,9 +32,9 @@ func (p *Processor) PreferencesGet(ctx context.Context, accountID string) (*apim
|
|||
}
|
||||
|
||||
return &apimodel.Preferences{
|
||||
PostingDefaultVisibility: mastoPrefVisibility(act.Privacy),
|
||||
PostingDefaultSensitive: *act.Sensitive,
|
||||
PostingDefaultLanguage: act.Language,
|
||||
PostingDefaultVisibility: mastoPrefVisibility(act.Settings.Privacy),
|
||||
PostingDefaultSensitive: *act.Settings.Sensitive,
|
||||
PostingDefaultLanguage: act.Settings.Language,
|
||||
// The Reading* preferences don't appear to actually be settable by the
|
||||
// client, so forcing some sensible defaults here
|
||||
ReadingExpandMedia: "default",
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue