McKael / madonctl

CLI client for the Mastodon social network API
MIT License
193 stars 9 forks source link

Support Pleroma instances #20

Open ghost opened 5 years ago

ghost commented 5 years ago

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.

McKael commented 5 years ago

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:

ghost commented 5 years ago

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

rjp commented 1 year ago

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.