IceCubesApp icon indicating copy to clipboard operation
IceCubesApp copied to clipboard

Akkoma/Pleroma support

Open FahimF opened this issue 2 years ago • 3 comments

  • Support for Akkoma (and Pleroma) servers so that JSON parsing of objects does not fail/crash by ensuring that missing objects from Akkoma/Pleroma feeds are handled gracefully.
  • Also fixes an issue with the Client which was sending POST data as URL parameters instead of in the request body. While this appears to work for Mastodon, it does break on other servers including Akkoma.

FahimF avatar Jan 25 '23 00:01 FahimF

Note sure the POST body works? Tried to post a post with special characters and I got a 422 empty status text.

Dimillian avatar Jan 25 '23 05:01 Dimillian

Up until now the some of the requests were sent in JSON, like status posting / editing. I was aiming at having everything sent in JSON in a near future. Does Plemora supports it?

Dimillian avatar Jan 25 '23 05:01 Dimillian

I had used the POST body code for a few weeks earlier, but I don't think I tried special characters. So can't tell you for sure but that's basically the same code (with some variation) that I use in multiple clients written for Swift code. Not saying that it doesn't have an error — I hesitate to definitively say something is (or is not) without testing ... But for general cases, it should work. Not sure about special characters though. The body might need to have that URL encoded and I might have forgotten to add that ...

FahimF avatar Jan 25 '23 05:01 FahimF

Closing for now, will resume the work on this a bit later.

Dimillian avatar Jan 27 '23 15:01 Dimillian