New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add reading:autoplay:gifs
to /api/v1/preferences
#22706
Conversation
This is great! However there is no way to update this preference (or all preferences) through the API right? |
Not as far as I could tell — might be nice to add though! |
I was wrong - digging through Mastodon's doc is challenging. 😂 https://docs.joinmastodon.org/methods/accounts/#update_credentials In fact, some of the preferences can be updated with this call. Shall we add it in there as well? |
That would be nice! I’ll open a PR to cross-link those parts of the docs :) |
Awesome, thank you so much! @Gargron would it make sense to have a dedicated |
@xmflsct @j-f1 from what i can see, this PR only lets you read the autoplay preference via the preferences API. it does not seem to touch the credentials controller at all, and update_credentials is not intended to be the way to set all preferences, either -- you can only set three specific preferences related to authoring statuses, and only for historical reasons. see #7021 (and consider it half-done), i suppose. |
This allows apps to pick up the user’s choice on whether to auto-play GIFs or not.