dumpsterqueer , EN ![]()
Are there any #jsonld knowers who can tell me if i'm doing anything absolutely nuts in this file here?
The goal is to support interaction policies that look like this:
{ "@context": [ "https://gotosocial.org/ns", "https://www.w3.org/ns/activitystreams" ], "content": "hey @f0x and @dumpsterqueer", "contentMap": { "en": "hey @f0x and @dumpsterqueer", "fr": "bonjour @f0x et @dumpsterqueer" }, "interactionPolicy": { "canLike": { "always": [ "https://www.w3.org/ns/activitystreams#Public" ], "approvalRequired": [] }, "canReply": { "always": [ "https://example.org/users/the_mighty_zork", "https://example.org/users/the_mighty_zork/followers", "https://another.example.org/users/dumpsterqueer", "https://another.example.org/users/f0x" ], "approvalRequired": [ "https://www.w3.org/ns/activitystreams#Public" ] }, "canAnnounce": { "always": [ "https://example.org/users/the_mighty_zork" ], "approvalRequired": [ "https://www.w3.org/ns/activitystreams#Public" ] } }, "tag": [ { "href": "https://another.example.org/users/dumpsterqueer", "name": "@dumpsterqueer@another.example.org", "type": "Mention" }, { "href": "https://another.example.org/users/f0x", "name": "@f0x@another.example.org", "type": "Mention" } ], "type": "Note" }
However I'm wrestling a bit with the activity library we're using in order to get it to generate usable Go types. It's quite possible that the
.jsonld
document is completely barmy.