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

Mastodon API: conversation object has wrong type for id #5016

Open
VyrCossont opened this issue Mar 23, 2024 · 0 comments
Open

Mastodon API: conversation object has wrong type for id #5016

VyrCossont opened this issue Mar 23, 2024 · 0 comments

Comments

@VyrCossont
Copy link

The output of the conversations API method is an array of Conversation objects. These are meant to have an id field with a string value, but Pixelfed's implementation returns a number instead. Pixelfed should convert that number to a string when serializing a Conversation, consistent with the way IDs are handled in the Mastodon API generally.

Actual output:

[
  {
    "id": 279,
    "unread": false,
    "accounts": [
      {
        "id": "602164231157803040",
        "username": "vyr",
        "acct": "vyr@demon.social",
        "…": ""
      }
    ]
  }
]

Corrected output:

[
  {
    "id": "279",
    "unread": false,
    "accounts": [
      {
        "id": "602164231157803040",
        "username": "vyr",
        "acct": "vyr@demon.social",
        "…": ""
      }
    ]
  }
]
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

1 participant