Mastodon API: conversation object has wrong type for id
VyrCossont opened this issue · comments
Vyr Cossont commented
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",
"…": "…"
}
]
}
]