From 0839c8936f9eba99a71c4692379f889599fab44d Mon Sep 17 00:00:00 2001 From: Laura Hausmann Date: Mon, 9 Sep 2024 21:23:30 +0200 Subject: [PATCH] [backend/federation] Improve layout of the canonical Iceshrimp.NET JSON-LD context This gets pruned and re-serialized before it gets placed in JSON responses anyway, so we might as well make it easier to read for development purposes. --- .../ActivityStreams/Contexts/iceshrimp.json | 26 ++++++++++++------- 1 file changed, 16 insertions(+), 10 deletions(-) diff --git a/Iceshrimp.Backend/Core/Federation/ActivityStreams/Contexts/iceshrimp.json b/Iceshrimp.Backend/Core/Federation/ActivityStreams/Contexts/iceshrimp.json index 924f6535..6650681d 100644 --- a/Iceshrimp.Backend/Core/Federation/ActivityStreams/Contexts/iceshrimp.json +++ b/Iceshrimp.Backend/Core/Federation/ActivityStreams/Contexts/iceshrimp.json @@ -3,6 +3,10 @@ "https://www.w3.org/ns/activitystreams", "https://w3id.org/security/v1", { + "toot": "http://joinmastodon.org/ns#", + "misskey": "https://misskey-hub.net/ns#", + "vcard": "http://www.w3.org/2006/vcard/ns#", + "movedTo": { "@id": "as:movedTo", "@type": "@id" @@ -11,18 +15,24 @@ "@id": "toot:featured", "@type": "@id" }, + "webfinger": { + "@id": "https://purl.archive.org/socialweb/webfinger#webfinger", + "@type": "xsd:string" + }, + "manuallyApprovesFollowers": "as:manuallyApprovesFollowers", "movedToUri": "as:movedTo", "sensitive": "as:sensitive", "Hashtag": "as:Hashtag", - "quoteUri": "http://fedibird.com/ns#quoteUri", "quoteUrl": "as:quoteUrl", - "toot": "http://joinmastodon.org/ns#", + "Emoji": "toot:Emoji", "discoverable": "toot:discoverable", + "votersCount": "toot:votersCount", + "PropertyValue": "http://schema.org#PropertyValue", "value": "http://schema.org#value", - "misskey": "https://misskey-hub.net/ns#", + "_misskey_content": "misskey:_misskey_content", "_misskey_quote": "misskey:_misskey_quote", "_misskey_reaction": "misskey:_misskey_reaction", @@ -30,14 +40,10 @@ "_misskey_talk": "misskey:_misskey_talk", "_misskey_summary": "misskey:_misskey_summary", "isCat": "misskey:isCat", - "vcard": "http://www.w3.org/2006/vcard/ns#", + "Bite": "https://ns.mia.jetzt/as#Bite", - "EmojiReact": "http://litepub.social/ns#EmojiReact", - "votersCount": "toot:votersCount", - "webfinger": { - "@id": "https://purl.archive.org/socialweb/webfinger#webfinger", - "@type": "xsd:string" - } + "quoteUri": "http://fedibird.com/ns#quoteUri", + "EmojiReact": "http://litepub.social/ns#EmojiReact" } ] } \ No newline at end of file