mirror of
https://github.com/superseriousbusiness/gotosocial.git
synced 2025-10-29 04:52:24 -05:00
[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.
This commit is contained in:
parent
9b4b4d4eb8
commit
6d138588d8
8 changed files with 315 additions and 2 deletions
|
|
@ -487,8 +487,8 @@ func NewTestAccounts() map[string]*gtsmodel.Account {
|
|||
Locked: TrueBool(),
|
||||
Discoverable: FalseBool(),
|
||||
Privacy: gtsmodel.VisibilityFollowersOnly,
|
||||
Sensitive: FalseBool(),
|
||||
Language: "en",
|
||||
Sensitive: TrueBool(),
|
||||
Language: "fr",
|
||||
URI: "http://localhost:8080/users/1happyturtle",
|
||||
URL: "http://localhost:8080/@1happyturtle",
|
||||
FetchedAt: time.Time{},
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue