[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:
parent
f0745f2df8
commit
19b004687d
2 changed files with 18 additions and 0 deletions
|
@ -0,0 +1,11 @@
|
||||||
|
{
|
||||||
|
"@context": {
|
||||||
|
"schema": "http://schema.org/",
|
||||||
|
"PropertyValue": {
|
||||||
|
"@id": "schema:PropertyValue"
|
||||||
|
},
|
||||||
|
"value": {
|
||||||
|
"@id": "schema:value"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
|
@ -34,6 +34,13 @@ public static class LdHelpers
|
||||||
"Contexts", "toot.json")))
|
"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
|
"litepub-0.1", new RemoteDocument
|
||||||
{
|
{
|
||||||
|
|
Loading…
Add table
Reference in a new issue