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
    1
    ·
    9 months ago

    freamon changes his mind about post 2, and undoes his downvote

    {
      "@context": [
        "https://join-lemmy.org/context.json",
        "https://www.w3.org/ns/activitystreams"
      ],
      "id": "https://local.com/activities/undo/e677b1ba-caaf-4a2f-9472-681705f337a3",
      "actor": "https://local.com/u/freamon",
      "object": {
        "actor": "https://local.com/u/freamon",
        "object": "https://remote.com/post/2",
        "type": "Like",
        "id": "https://local.com/activities/like/70edfad8-dcbb-42cd-8fd2-f674844b8801",
        "audience": "https://remote.com/c/interesting"
      },
      "type": "Undo",
      "audience": "https://remote.com/c/interesting"
    }
    

    Note: due the expection of unique ‘id’ fields, the encapsulated object isn’t the same, so this is probably best read as ‘undo vote’