mastodon_api: Add /api/v1/preferences endpoint #625
No reviewers
Labels
No labels
approved, awaiting change
bug
configuration
documentation
duplicate
enhancement
extremely low priority
feature request
Fix it yourself
help wanted
invalid
mastodon_api
needs docs
needs tests
not a bug
planned
pleroma_api
privacy
question
static_fe
triage
wontfix
No milestone
No project
No assignees
2 participants
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: AkkomaGang/akkoma#625
Loading…
Reference in a new issue
No description provided.
Delete branch "redstrate/akkoma:work/redstrate/preferences"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
I work on Tokodon, a fediverse client that uses the Mastodon API. I noticed that Akkoma doesn't implement the preferences API, which results in a not-so-pretty error 😄
Unfortunately, I see that not a lot of (Mastodon's) preferences are exposed in the default frontend - and the ones that are the only real one that's stored server-side is the default post visibility. This change implements this to the best of what we have, and will at least quell clients that ask for it. If anyone has any ideas of how else we can fill the data (maybe read out of the mastodon fe preferences map?) I'd appreciate ideas.
Tests for the one piece of working functionality is added as well.
oh wowee you got this up fast, thanks! far better than us just saying "yea not supported" i guess
the code looks ok, but CI is screaming about formatting - any chance you could run "mix format" and commit those changes? i'll set the tests off to run then :dance:
Yes I can, I was about to ask if there was some kind of auto-formatter
3602022484
toc22ecac567
Done, should be formatted correctly now 🎉
this seems ok - some very minor compiler warnings that i'll fix up for you (like literally "bls put this function next to others of the same name" style), but everything passes
all good here, thanks a lot!