-
-
Notifications
You must be signed in to change notification settings - Fork 32
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
Option to GET only public account statuses (GoToSocial) #2210
Comments
For example, Mastodon doesn't have such parameter: https://github.com/mastodon/mastodon/blob/8afa3bb2fa872c2413cd264ca3321a7509a5ffdf/app/lib/account_statuses_filter.rb#L3 But, it seems like Gotosocial has it. So, it's not so difficult to implement the parameter in megalodon. |
Are you accepting PRs on it? I could take an attempt then. |
Of course, I'm waiting for your PRs. Thank you. |
I've opened #2211 with the change. Looking at the tests folder I could not see a folder or file for GoToSocial. Therefore no updates there. |
Amazing project! I love it! My use case is to display my last public toot (not a reply or boost) on my homepage.
I'm almost there! Running my own GoToSocial instance at fedi.jaenis.ch I can study the API:
https://docs.gotosocial.org/en/latest/api/swagger/
I can see that there's an
only_public
flag that I cannot set in Megalodon's implementation.For now I'm overfetching and filtering the results (
status.visibility === "public"
) on the client. This incurs a little bit more data, which I would like to avoid (because it could mean visitors paying more than strictly necessary).Is there a way to extend the API here? Or are there constraints (such as: same API for all fedi services)?
The text was updated successfully, but these errors were encountered: