Akkoma/Pleroma support
- 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.
Note sure the POST body works? Tried to post a post with special characters and I got a 422 empty status text.
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?
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 ...
Closing for now, will resume the work on this a bit later.