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

fix: non-compliant Mastodon Account endpoints #365

Draft
wants to merge 6 commits into
base: main
Choose a base branch
from

Commits on Mar 3, 2023

  1. Define CustomEmoji type

    DataDrivenMD committed Mar 3, 2023
    Configuration menu
    Copy the full SHA
    8d9daec View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    d4ad375 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    3594448 View commit details
    Browse the repository at this point in the history
  4. Add /api/v1/accounts/lookup + tests

    This also refactors several tests previously under the `/api/v1/accounts/:id` endpoint to the newly-implemented `/api/v1/accounts/lookup` endpoint. This was done in order to be in compliance with Mastodon API specification
    DataDrivenMD committed Mar 3, 2023
    Configuration menu
    Copy the full SHA
    db4a6b4 View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    6c43f27 View commit details
    Browse the repository at this point in the history

Commits on Mar 4, 2023

  1. Generate a Mastodon account ID

    - [X] Generate a Mastodon account ID when an AP actor is added to the `actors` table
    - [X] Ensure that every entry in the actors table has a `mastodon_id`
    - [ ] Update the code in wildebeest/functions/api/v1/accounts/[id].ts and wildebeest/functions/api/v1/accounts/[id]/*.ts so that they actually use the Mastodon Account ID instead of the ActivityPub actor ID because as things stand now, the implementation is not-compliant with the Mastodon API spec, and it's breaking compatibility with several popular 3rd-party apps
    - [ ] Update test suite /api/v1/accounts/:id endpoints
    DataDrivenMD committed Mar 4, 2023
    Configuration menu
    Copy the full SHA
    37940a0 View commit details
    Browse the repository at this point in the history