I’ll reply in the comments with a example of what lemmy sends for each thing you can do (I think I’ve thought of everything, but you can probably guess the format if not, or I can always add it).

So, the setup for these is:
Our instance is called ‘local.com
Our user is called ‘freamon’
The other instance is called ‘remote.com
The community on that instance is called ‘interesting’

For many of these, remote.com will receive them, and rewraps them in an Announce to send out to all the other instances with a copy of the community, so everyone stays in sync.

Sort by ‘Old’ for the best hope of these making sense.
I’ll follow this post up with a script, that can be used to send these activities from the command-line, as I think it can help to understand Lemmy if you’re using something much simpler than Lemmy to do some of things Lemmy does.

EDIT: As nutomic as mentioned, a better list is in the docs. It’s the kind of thing I should read first, I guess.

    • freamonOP
      link
      fedilink
      English
      arrow-up
      5
      ·
      9 months ago

      Oh. I feel daft now. That’s some nice, comprehensive documentation, that I hadn’t seen before. I’ll edit this post to point to it, and I guess people can maybe use it if they want to comment about a particular activity.

      • nutomic@lemmy.ml
        link
        fedilink
        English
        arrow-up
        6
        ·
        9 months ago

        Its also good to explore for yourself. Maybe you notice something missing/outdated in the documentation and can fix it. The docs are generated from these files which are also used in the unit tests.

    • maegul (he/they)@lemmy.mlM
      link
      fedilink
      English
      arrow-up
      3
      ·
      9 months ago

      Yea but repetition legitimises! (A reference/joke BTW)

      Seriously though @freamon@endlesstalk.org , how are you deriving all of these? From theoretical understanding of what should happen or actual observations of a test system?

      • freamonOP
        link
        fedilink
        English
        arrow-up
        4
        ·
        9 months ago

        Observation, mostly. Also guesswork and trial-and-error, because I never realised these were all in the docs.

        The comments in here are from me running lemmy in a VM, and subscribing to a fake community on a VPS (you can mimic a community with a webfinger response and a bunch of static files). The activities sent by lemmy just went to a basic server, that dumped out the JSON files it received.

        I mostly made this post so I could point to something when posting about a Ruby script that can be used to interact with lemmy from the command line. This provides the opportunity to learn about ActivityPub, separate from the more complicated applications that currently implement it.