Hacker News new | ask | show | jobs
by jeroenhd 1248 days ago
The API (https://docs.joinmastodon.org/entities/Status/#id) explains that IDs are not numbers:

    Description: ID of the status in the database.
    Type: String (cast from an integer but not guaranteed to be a number)
    Version history:
0.1.0 - added

In other words, even the Mastodon API docs claim the ID isn't guaranteed not to be a string.

I'm sure there are undocumented differences, but if you base your data model on the spec then there's no reason to even assume you can just use a number.

1 comments

That was added after the developers of Toot! (iOS app) claimed Pleroma was at fault for it not working with their app because they implemented MastoAPI wrong.

Toot! seems to work with Akkoma/Pleroma now, but notifications are still somewhat lossy.