diff --git a/Iceshrimp.Backend/Core/Federation/ActivityStreams/Contexts/schema.json b/Iceshrimp.Backend/Core/Federation/ActivityStreams/Contexts/schema.json new file mode 100644 index 00000000..c1e7983a --- /dev/null +++ b/Iceshrimp.Backend/Core/Federation/ActivityStreams/Contexts/schema.json @@ -0,0 +1,11 @@ +{ + "@context": { + "schema": "http://schema.org/", + "PropertyValue": { + "@id": "schema:PropertyValue" + }, + "value": { + "@id": "schema:value" + } + } +} \ 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 cf37d739..38b40b43 100644 --- a/Iceshrimp.Backend/Core/Federation/ActivityStreams/LDHelpers.cs +++ b/Iceshrimp.Backend/Core/Federation/ActivityStreams/LDHelpers.cs @@ -34,6 +34,13 @@ public static class LdHelpers "Contexts", "toot.json"))) } }, + { + "http://schema.org/", new RemoteDocument + { + Document = JToken.Parse(File.ReadAllText(Path.Combine("Core", "Federation", "ActivityStreams", + "Contexts", "schema.json"))) + } + }, { "litepub-0.1", new RemoteDocument {