madonctl icon indicating copy to clipboard operation
madonctl copied to clipboard

Support Pleroma instances

Open ghost opened this issue 5 years ago • 3 comments

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.

ghost avatar May 22 '19 05:05 ghost

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:

McKael avatar Jul 29 '19 20:07 McKael

That would be lovely. Feel free to give me a heads-up and I'll test it.

ghost avatar Jul 30 '19 06:07 ghost

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.

rjp avatar Jan 12 '23 13:01 rjp