Skip to content

Instantly share code, notes, and snippets.

@33mhz
Last active October 16, 2019 20:45
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save 33mhz/6be502d78bbe6260d5bb5fdcd2ea21e2 to your computer and use it in GitHub Desktop.
Save 33mhz/6be502d78bbe6260d5bb5fdcd2ea21e2 to your computer and use it in GitHub Desktop.
Pnut crosspost detail with source

I believe all but canonical_url would be optional. But if including source, both url and name would be required. If including user, id would be required.

{
    "type": "io.pnut.core.crosspost",
    "value": {
        "canonical_url": "https://some-matrix-service.org/howeverthisgoes/123",
        "user": {
            "id": "@alice:example.com",
            "username": "alice",
            "name": "Alice Margatroid (Optional)",
            "avatar_image": "https://matrix.org/SDGdghriugerRg"
        },
        "source": {
            "url": "https://matrix.org",
            "name": "Matrix"
        }
    }
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment