diff options
author | 2024-03-22 14:03:46 +0100 | |
---|---|---|
committer | 2024-03-22 14:03:46 +0100 | |
commit | 7f4a0a1aeb8a294ee967c63d7a48446df013ec44 (patch) | |
tree | b9b3836fa0abe1d7a5758d07d6ebb6486a353d56 /internal/processing/preferences.go | |
parent | [bugfix] add all possible busy result codes to the sqlite errBusy catching ch... (diff) | |
download | gotosocial-7f4a0a1aeb8a294ee967c63d7a48446df013ec44.tar.xz |
[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
Diffstat (limited to 'internal/processing/preferences.go')
-rw-r--r-- | internal/processing/preferences.go | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/internal/processing/preferences.go b/internal/processing/preferences.go index 90fc86430..0a5f566ae 100644 --- a/internal/processing/preferences.go +++ b/internal/processing/preferences.go @@ -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", |