[ActivityPub C2S] json+ld type vs. @type
Bug description
Its possible to send the activity:
{
"@context": "https://www.w3.org/ns/activitystreams",
"type": "Create",
"actor": "https://mustermann.xyusers/abcde",
"object": {
"type": "Note",
"content": "Test"
}
}
But if i use @type instead the POST breaks with "Unhandled activity type"
{
"@context": "https://www.w3.org/ns/activitystreams",
"@type": "Create",
"actor": "https://mustermann.xyusers/abcde",
"object": {
"type": "Note",
"content": "Test"
}
}
i think @type should be valid ! See: https://json-ld.org/spec/latest/json-ld/#specifying-the-type I looks also like that it's not possible to send an array of types.
Best regards
Edited by naturzukunft