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?

all 5 comments

sorted by: hot top controversial new old
[–] 1 point 1 year ago
[–] 1 point 1 year ago (1 child)

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.

  • source
  • hideshow 2 child comments
  • [–] [S] 1 point 1 year ago (1 child)

    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.

  • source
  • parent
  • hideshow 2 child comments
  • [–] 2 points 1 year ago* (last edited 1 year ago) (1 child)

    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?

  • source
  • parent
  • hideshow 2 child comments
  • [–] [S] 2 points 1 year 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.

  • source
  • parent