The first commit will fix it but I'm not sure if the second should be merged.
The first issue is that Pixelfed for some reason broke their custom emojis api but also Vala's optional chaining not working as always. So it could be null and still return as truthy.
The second issue, which was just critical logs from json glib but should be taken into account, was that when attempting to get the json root, it could not be an object, as many edge cases are valid json but useless to us.
It makes sense to check but is also useless to assume that a server could not return an object. Well, if they implement mastoapi that is.
fix: #895
The first commit will fix it but I'm not sure if the second should be merged.
The first issue is that Pixelfed for some reason broke their custom emojis api but also Vala's optional chaining not working as always. So it could be null and still return as truthy.
The second issue, which was just critical logs from json glib but should be taken into account, was that when attempting to get the json root, it could not be an object, as many edge cases are valid json but useless to us.
It makes sense to check but is also useless to assume that a server could not return an object. Well, if they implement mastoapi that is.