For example, If I wanted to see how lemmy handles an announcement of an announcement, is there a tool I could use to write a custom activity and send it to the target server?

  • rglullisA
    link
    fedilink
    arrow-up
    1
    ·
    11 days ago

    You will need a server that can serve you actor URL and public key. Even a static webpage will do. If you have that, then a simple curl could be sufficient.

    • irelephant [he/him]🍭@lemm.eeOP
      link
      fedilink
      English
      arrow-up
      1
      ·
      11 days ago

      I had tried stuff similar to this (hosting static json on my neocities site), but it failed. It probably was because of the keys. I’ll try it again with them.

      • rglullisA
        link
        fedilink
        English
        arrow-up
        2
        ·
        edit-2
        9 days ago

        Another thing to consider is that most servers only accept HTTP requests that are properly signed.

        Maybe you can take a look at Fedify if you know your way around javascript development? If python is your thing, maybe my own Django ActivityPub code?

        • irelephant [he/him]🍭@lemm.eeOP
          link
          fedilink
          English
          arrow-up
          2
          ·
          9 days ago

          I made a shell script which makes a request (with curl) with the version of http signing mastodon uses. It works. I think.

          Anyway, I was planning on making an ActivityPub library in lua, for the lapis framework.