Update post context to support thread

main
Bob Mottram 2024-10-07 11:25:58 +01:00
parent 688a656cfa
commit b190a0f4cd
1 changed files with 11 additions and 1 deletions

View File

@ -31,6 +31,7 @@ VALID_CONTEXTS = (
def get_individual_post_context() -> []:
"""Returns the context for an individual post
https://codeberg.org/fediverse/fep/src/branch/main/fep/76ea/fep-76ea.md
"""
return [
'https://www.w3.org/ns/activitystreams',
@ -42,7 +43,16 @@ def get_individual_post_context() -> []:
"sensitive": "as:sensitive",
"toot": "http://joinmastodon.org/ns#",
"votersCount": "toot:votersCount",
"blurhash": "toot:blurhash"
"blurhash": "toot:blurhash",
"thr": "https://purl.archive.org/socialweb/thread#",
"thread": {
"@id": "thr:thread",
"@type": "@id"
},
"root": {
"@id": "thr:root",
"@type": "@id"
}
}
]