So I am using Scheme's Medea library to parse ActivityPub posts.
-
So I am using Scheme's Medea library to parse ActivityPub posts. It can process Mastodon and Snac just fine. But does not like some others, eg Iceshrimp.
I guess I will write a function to re-format the Iceshrimp json-ld so Medea likes it ... anyone know of examples or blog posts that have discussed this? To save me staring at the dreaded json-ld for so long...
Other Scheme libraries have the same problem with Iceshrimp posts. IDK if they may also have some issues with Misskey, Sharkey, Honk, etc etc, haven't got around to testing those yet.
#ActivityPub
-
System moved this topic from General Discussion
-
@brettm@swarm.coiloptic.org yes! Ask @hongminhee@hollo.social
I'm guessing Medea is a JSON-LD processor?
Min hee has been working on some of these workarounds π
-
Medea is just JSON not JSON-LD but it seems to process some JSON-LD just fine, eg Snac and Mastodon-generated stuff. Looking at Iceshrimp and they seem to throw in a lot of extra cruft:
[] all over the place,
escaped double quotes,
a bunch of litepub and misskey stuff
eeerp many JSON parses take one look and say "I ain't reading all that" π
CC: @hongminhee@hollo.social
-
Medea is just JSON not JSON-LD but it seems to process some JSON-LD just fine, eg Snac and Mastodon-generated stuff. Looking at Iceshrimp and they seem to throw in a lot of extra cruft:
[] all over the place,
escaped double quotes,
a bunch of litepub and misskey stuff
eeerp many JSON parses take one look and say "I ain't reading all that" π
CC: @hongminhee@hollo.social@brettm@swarm.coiloptic.org Could I see the problematic JSON-LD document?