Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Brite
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (Cyborg)
  • No Skin
Collapse
Brand Logo

CIRCLE WITH A DOT

  1. Home
  2. Uncategorized
  3. So I am using Scheme's Medea library to parse ActivityPub posts.

So I am using Scheme's Medea library to parse ActivityPub posts.

Scheduled Pinned Locked Moved Uncategorized
activitypub
4 Posts 3 Posters 0 Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • brettm@swarm.coiloptic.orgB This user is from outside of this forum
    brettm@swarm.coiloptic.orgB This user is from outside of this forum
    brettm@swarm.coiloptic.org
    wrote last edited by
    #1
    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

    julian@activitypub.spaceJ 1 Reply Last reply
    0
    • brettm@swarm.coiloptic.orgB brettm@swarm.coiloptic.org
      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

      julian@activitypub.spaceJ This user is from outside of this forum
      julian@activitypub.spaceJ This user is from outside of this forum
      julian@activitypub.space
      wrote last edited by
      #2

      @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 😝

      brettm@swarm.coiloptic.orgB 1 Reply Last reply
      0
      • julian@activitypub.spaceJ julian@activitypub.space

        @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 😝

        brettm@swarm.coiloptic.orgB This user is from outside of this forum
        brettm@swarm.coiloptic.orgB This user is from outside of this forum
        brettm@swarm.coiloptic.org
        wrote last edited by
        #3
        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

        hongminhee@hollo.socialH 1 Reply Last reply
        0
        • brettm@swarm.coiloptic.orgB brettm@swarm.coiloptic.org
          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

          hongminhee@hollo.socialH This user is from outside of this forum
          hongminhee@hollo.socialH This user is from outside of this forum
          hongminhee@hollo.social
          wrote last edited by
          #4

          @brettm@swarm.coiloptic.org Could I see the problematic JSON-LD document?

          @julian@activitypub.space

          1 Reply Last reply
          1
          0
          • R relay@relay.an.exchange shared this topic
          Reply
          • Reply as topic
          Log in to reply
          • Oldest to Newest
          • Newest to Oldest
          • Most Votes


          • Login

          • Login or register to search.
          • First post
            Last post
          0
          • Categories
          • Recent
          • Tags
          • Popular
          • World
          • Users
          • Groups