From 6d138588d8fc450121a3230612e8cf2d9b4e9908 Mon Sep 17 00:00:00 2001 From: Daenney Date: Sat, 6 May 2023 17:42:58 +0200 Subject: [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. --- internal/api/model/preferences.go | 2 ++ 1 file changed, 2 insertions(+) (limited to 'internal/api/model/preferences.go') 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"` } -- cgit v1.2.3