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

    freamon creates a post in the interesting community. He adds a title, a body, links to an image, and tags it as in English.

    {
      "@context": [
        "https://join-lemmy.org/context.json",
        "https://www.w3.org/ns/activitystreams"
      ],
      "id": "https://local.com/activities/create/37f46c10-9fc2-4228-b8ea-3803eb911485",
      "actor": "https://local.com/u/freamon",
      "to": [
        "https://www.w3.org/ns/activitystreams#Public"
      ],
      "object": {
        "type": "Page",
        "id": "https://local.com/post/3",
        "attributedTo": "https://local.com/u/freamon",
        "to": [
          "https://remote.com/c/interesting",
          "https://www.w3.org/ns/activitystreams#Public"
        ],
        "name": "Title Text",
        "cc": [],
        "content": "<p>Body Text</p>\n",
        "mediaType": "text/html",
        "source": {
          "content": "Body Text",
          "mediaType": "text/markdown"
        },
        "attachment": [
          {
            "href": "https://i.imgur.com/T7Z3vUU.jpeg",
            "type": "Link"
          }
        ],
        "commentsEnabled": true,
        "sensitive": false,
        "published": "2024-02-13T21:46:05.705099Z",
        "language": {
          "identifier": "en",
          "name": "English"
        },
        "audience": "https://remote.com/c/interesting"
      },
      "cc": [
        "https://remote.com/c/interesting"
      ],
      "type": "Create",
      "audience": "https://remote.com/c/interesting"
    }