Fix context definition in lemmy_federation_context.json (#294)

* Fix context definition in lemmy_federation_context.json

Context [must be in "@context" field](https://www.w3.org/TR/json-ld11-api/#overview).

* fix indent
This commit is contained in:
Zoggy 2024-01-15 10:33:37 +01:00 committed by GitHub
parent 721f301cd1
commit 5fc78400df
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1,24 +1,26 @@
[ {
"https://w3id.org/security/v1", "@context": [
{ "https://w3id.org/security/v1",
"lemmy": "https://join-lemmy.org/ns#", {
"litepub": "http://litepub.social/ns#", "lemmy": "https://join-lemmy.org/ns#",
"pt": "https://joinpeertube.org/ns#", "litepub": "http://litepub.social/ns#",
"sc": "http://schema.org/", "pt": "https://joinpeertube.org/ns#",
"ChatMessage": "litepub:ChatMessage", "sc": "http://schema.org/",
"commentsEnabled": "pt:commentsEnabled", "ChatMessage": "litepub:ChatMessage",
"sensitive": "as:sensitive", "commentsEnabled": "pt:commentsEnabled",
"matrixUserId": "lemmy:matrixUserId", "sensitive": "as:sensitive",
"postingRestrictedToMods": "lemmy:postingRestrictedToMods", "matrixUserId": "lemmy:matrixUserId",
"removeData": "lemmy:removeData", "postingRestrictedToMods": "lemmy:postingRestrictedToMods",
"stickied": "lemmy:stickied", "removeData": "lemmy:removeData",
"moderators": { "stickied": "lemmy:stickied",
"@type": "@id", "moderators": {
"@id": "lemmy:moderators" "@type": "@id",
}, "@id": "lemmy:moderators"
"expires": "as:endTime", },
"distinguished": "lemmy:distinguished", "expires": "as:endTime",
"language": "sc:inLanguage", "distinguished": "lemmy:distinguished",
"identifier": "sc:identifier" "language": "sc:inLanguage",
} "identifier": "sc:identifier"
] }
]
}