diff --git a/Iceshrimp.Backend/Core/Federation/ActivityStreams/Contexts/as-extensions.json b/Iceshrimp.Backend/Core/Federation/ActivityStreams/Contexts/as-extensions.json index 8006659b..c5226e61 100644 --- a/Iceshrimp.Backend/Core/Federation/ActivityStreams/Contexts/as-extensions.json +++ b/Iceshrimp.Backend/Core/Federation/ActivityStreams/Contexts/as-extensions.json @@ -8,6 +8,7 @@ "@id": "http://joinmastodon.org/ns#featured", "@type": "@id" }, - "EmojiReact": "http://litepub.social/ns#EmojiReact" + "EmojiReact": "http://litepub.social/ns#EmojiReact", + "sensitive": "https://www.w3.org/ns/activitystreams#sensitive" } } \ No newline at end of file diff --git a/Iceshrimp.Backend/Core/Federation/ActivityStreams/Contexts/gts.json b/Iceshrimp.Backend/Core/Federation/ActivityStreams/Contexts/gts.json new file mode 100644 index 00000000..ba967783 --- /dev/null +++ b/Iceshrimp.Backend/Core/Federation/ActivityStreams/Contexts/gts.json @@ -0,0 +1,17 @@ +{ + "@context": { + "gts": "https://gotosocial.org/ns#", + "interactionPolicy": "gts:interactionPolicy", + "canLike": "gts:canLike", + "canReply": "gts:canReply", + "canAnnounce": "gts:canAnnounce", + "always": { + "@id": "gts:always", + "@type": "@id" + }, + "approvalRequired": { + "@id": "gts:approvalRequired", + "@type": "@id" + } + } +} \ No newline at end of file diff --git a/Iceshrimp.Backend/Core/Federation/ActivityStreams/LdHelpers.cs b/Iceshrimp.Backend/Core/Federation/ActivityStreams/LdHelpers.cs index 7ca647fc..115ac2f9 100644 --- a/Iceshrimp.Backend/Core/Federation/ActivityStreams/LdHelpers.cs +++ b/Iceshrimp.Backend/Core/Federation/ActivityStreams/LdHelpers.cs @@ -18,6 +18,7 @@ public static class LdHelpers ["https://www.w3.org/ns/activitystreams"] = GetPreloadedContext("as.json"), ["https://w3id.org/security/v1"] = GetPreloadedContext("security.json"), ["http://joinmastodon.org/ns"] = GetPreloadedContext("toot.json"), + ["https://gotosocial.org/ns"] = GetPreloadedContext("gts.json"), ["http://schema.org/"] = GetPreloadedContext("schema.json"), ["litepub-0.1"] = GetPreloadedContext("litepub.json") };