diff options
author | 2023-05-06 17:42:58 +0200 | |
---|---|---|
committer | 2023-05-06 17:42:58 +0200 | |
commit | 6d138588d8fc450121a3230612e8cf2d9b4e9908 (patch) | |
tree | 5c0885badc38facd90ec5e532e67795f5b39e945 /internal/api/model/preferences.go | |
parent | [chore] update readthedocs deps, use conda (#1742) (diff) | |
download | gotosocial-6d138588d8fc450121a3230612e8cf2d9b4e9908.tar.xz |
[feature] Implement the preferences client API (#1740)
This adds the preferences endpoint to our Mastodon Client API
implementation. It's a read-only endpoint that returns a number of
user preferences. Applications can query these settings when logging in
a user (for the first time) to configure themselves.
Diffstat (limited to 'internal/api/model/preferences.go')
-rw-r--r-- | internal/api/model/preferences.go | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/internal/api/model/preferences.go b/internal/api/model/preferences.go index 7a4c96b18..35ad040a2 100644 --- a/internal/api/model/preferences.go +++ b/internal/api/model/preferences.go @@ -36,4 +36,6 @@ type Preferences struct { ReadingExpandMedia string `json:"reading:expand:media"` // Whether CWs should be expanded by default. ReadingExpandSpoilers bool `json:"reading:expand:spoilers"` + // Whether gifs should automatically play. + ReadingAutoPlayGifs bool `json:"reading:autoplay:gifs"` } |