mirror of
https://github.com/bookwyrm-social/bookwyrm.git
synced 2024-11-25 11:01:12 +00:00
Add as:Hashtag to activitypub context
This commit is contained in:
parent
4e987a0e66
commit
46544451d4
3 changed files with 6 additions and 1 deletions
|
@ -250,7 +250,10 @@ class ActivityObject:
|
|||
pass
|
||||
data = {k: v for (k, v) in data.items() if v is not None and k not in omit}
|
||||
if "@context" not in omit:
|
||||
data["@context"] = "https://www.w3.org/ns/activitystreams"
|
||||
data["@context"] = [
|
||||
"https://www.w3.org/ns/activitystreams",
|
||||
{"Hashtag": "as:Hashtag"},
|
||||
]
|
||||
return data
|
||||
|
||||
|
||||
|
|
|
@ -327,6 +327,7 @@ class User(OrderedCollectionPageMixin, AbstractUser):
|
|||
"https://w3id.org/security/v1",
|
||||
{
|
||||
"manuallyApprovesFollowers": "as:manuallyApprovesFollowers",
|
||||
"Hashtag": "as:Hashtag",
|
||||
"schema": "http://schema.org#",
|
||||
"PropertyValue": "schema:PropertyValue",
|
||||
"value": "schema:value",
|
||||
|
|
|
@ -95,6 +95,7 @@ class User(TestCase):
|
|||
"PropertyValue": "schema:PropertyValue",
|
||||
"alsoKnownAs": {"@id": "as:alsoKnownAs", "@type": "@id"},
|
||||
"manuallyApprovesFollowers": "as:manuallyApprovesFollowers",
|
||||
"Hashtag": "as:Hashtag",
|
||||
"movedTo": {"@id": "as:movedTo", "@type": "@id"},
|
||||
"schema": "http://schema.org#",
|
||||
"value": "schema:value",
|
||||
|
|
Loading…
Reference in a new issue