Skip to content
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

Follower function faulty? #183

Open
SchBenedikt opened this issue Nov 1, 2024 · 3 comments
Open

Follower function faulty? #183

SchBenedikt opened this issue Nov 1, 2024 · 3 comments

Comments

@SchBenedikt
Copy link

SchBenedikt commented Nov 1, 2024

Hello everyone,

the plugin is really great!

Unfortunately the number of followers doesn't work for me; when I follow people, it isn't displayed correctly; in all clients (iOS/Web) it always just shows "0", even if there should be several. But I activated the Friends plugin after installing "Enable mastodon apps". My followers are displayed correctly there.

Even when I ran @akirk's Mastodon API tester, I get an error for the followers/people I follow:

GET /api/v1/accounts/1/following
-- Response received after 1.0 seconds
HTTP Status: 404
cache-control: no-cache, must-revalidate, max-age=0, no-store, private
content-type: application/json; charset=UTF-8
expires: Wed, 11 Jan 1984 05:00:00 GMT
link: <https://DOMAIN-NAME.de/wp-json/>; rel="https://api.w.org/"
{
  "error": "rest_no_route",
  "error_description": "Es wurde keine Route gefunden, die mit der URL und der Request-Methode identisch ist."
}

Do you know how I can fix this error?

Thanks in advance,
schBenedikt


Pinafore.social Error:

GET https://DOMAIN.de/api/v1/accounts/1/following?limit=80 404 (Not Found)

@akirk
Copy link
Owner

akirk commented Nov 1, 2024

Hi, as indicated on https://github.com/akirk/enable-mastodon-apps, this endpoint is not yet implemented. For this to work, this would need to be implemented in EMA first (like https://github.com/akirk/enable-mastodon-apps/blob/main/includes/class-mastodon-api.php#L1255-L1271) and then in the Friends plugin to supply the list of followers. Happy to guide you further if you're willing to help!

@SchBenedikt
Copy link
Author

Thanks for the quick reply!

@SchBenedikt
Copy link
Author

SchBenedikt commented Nov 1, 2024

Thanks again,

the API endpoint is now reachable, but no content is displayed even though I would normally follow people?
But for the people I follow, it only appears in the Friends plugin under "Subscriptions" and not under "Friends". Could that be the reason? Would I have to rework the Friends code for that?
image

Will this feature be added in future updates?


GET /api/v1/accounts/1/following
Server: https://DOMAIN.de
Authorization: Bearer e14babee97000dbffdb71eddf4cf99ea583f348c
Content-Type: application/json
Accept: application/json
-- Response received after 0.9 seconds
HTTP Status: 200
cache-control: no-cache, must-revalidate, max-age=0, no-store, private
content-length: 2
content-type: application/json; charset=UTF-8
expires: Wed, 11 Jan 1984 05:00:00 GMT
link: <https://DOMAIN.de/wp-json/>; rel="https://api.w.org/"
[]

@SchBenedikt SchBenedikt reopened this Nov 1, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants