madonctl
madonctl copied to clipboard
Support Pleroma instances
I get this error while trying to use madonctl
with a Pleroma instance:
Error: cannot decode API response (GET): json: cannot unmarshal number [...] into Go struct field Account.id of type int64
Could be related to this? https://mastodon.social/@tootapp/101483707041892818
[...] IDs are no longer 64-bit integers.
I don't have a Pleroma account to test with, but indeed it is very probably caused by that, Madon expects strings containing u64 values... I can change it but it will be a non-compatible change and it'll probably break a few things.
Sorry for the delay. I first thought I'd create a Pleroma account somewhere and then I forgot about this issue... :innocent:
That would be lovely. Feel free to give me a heads-up and I'll test it.
I've done this but it needs some cleaning up and digging out all the places where it's been assumed that an id == int64
. There's actually another required part re: OAuth which I'll file a separate issue and PR for.