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.

  • freamon@endlesstalk.orgOP
    link
    fedilink
    English
    arrow-up
    1
    ·
    10 months ago

    As a moderator, freamon decides to remove a post

    {
      "@context": [
        "https://join-lemmy.org/context.json",
        "https://www.w3.org/ns/activitystreams"
      ],
      "id": "https://local.com/activities/delete/2de802ce-f032-4327-985b-4078bc7fe2c5",
      "actor": "https://local.com/u/freamon",
      "to": [
        "https://www.w3.org/ns/activitystreams#Public"
      ],
      "object": "https://local.com/post/3",
      "type": "Delete",
      "audience": "https://remote.com/c/interesting",
      "cc": [
        "https://remote.com/c/interesting"
      ],
      "summary": "Post was bad."
    }
    
    • freamon@endlesstalk.orgOP
      link
      fedilink
      English
      arrow-up
      1
      ·
      10 months ago

      freamon changes his mind, and restores the post

      {
        "@context": [
          "https://join-lemmy.org/context.json",
          "https://www.w3.org/ns/activitystreams"
        ],
        "id": "https://local.com/activities/undo/d9fb7304-74f2-4724-8c45-1871054ae334",
        "actor": "https://local.com/u/freamon",
        "to": [
          "https://www.w3.org/ns/activitystreams#Public"
        ],
        "object": {
          "actor": "https://local.com/u/freamon",
          "to": [
            "https://www.w3.org/ns/activitystreams#Public"
          ],
          "object": "https://local.com/post/3",
          "type": "Delete",
          "id": "https://local.com/activities/delete/11c44e39-e2b9-4649-b3ee-f8c602075f89",
          "audience": "https://remote.com/c/interesting",
          "cc": [
            "https://remote.com/c/interesting"
          ],
          "summary": "Post was actually Good"
        },
        "type": "Undo",
        "audience": "https://remote.com/c/interesting",
        "cc": [
          "https://remote.com/c/interesting"
        ]
      }