[backend/federation] Bypass a bug in GTS that causes the type property to be invalid

Ref: https://github.com/superseriousbusiness/gotosocial/issues/1947
This commit is contained in:
Laura Hausmann 2024-02-17 18:14:41 +01:00
parent f0745f2df8
commit 19b004687d
No known key found for this signature in database
GPG key ID: D044E84C5BE01605
2 changed files with 18 additions and 0 deletions

View file

@ -0,0 +1,11 @@
{
"@context": {
"schema": "http://schema.org/",
"PropertyValue": {
"@id": "schema:PropertyValue"
},
"value": {
"@id": "schema:value"
}
}
}

View file

@ -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
{