Welcome to Incremental Social! Learn more about this project here! Check out lemmyverse to find more communities to join from here!
dumpsterqueer , 4 days ago EN Are there any #jsonld knowers who can tell me if i'm doing anything absolutely nuts in this file here? https://github.com/superseriousbusiness/activity/pull/23/files#diff-1cf62dbcdb9dcca7b43f78d534c742201cee49d93f55f10358e38e9a13c9a129 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.
Are there any #jsonld knowers who can tell me if i'm doing anything absolutely nuts in this file here?
https://github.com/superseriousbusiness/activity/pull/23/files#diff-1cf62dbcdb9dcca7b43f78d534c742201cee49d93f55f10358e38e9a13c9a129
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.
.jsonld