enable-mastodon-apps icon indicating copy to clipboard operation
enable-mastodon-apps copied to clipboard

Follower function faulty?

Open SchBenedikt opened this issue 1 year ago • 3 comments

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)

SchBenedikt avatar Nov 01 '24 07:11 SchBenedikt

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!

akirk avatar Nov 01 '24 12:11 akirk

Thanks for the quick reply!

SchBenedikt avatar Nov 01 '24 20:11 SchBenedikt

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 avatar Nov 01 '24 20:11 SchBenedikt