summaryrefslogtreecommitdiffstats
path: root/users
diff options
context:
space:
mode:
authorAndrew Godwin2022-12-16 19:45:39 -0700
committerAndrew Godwin2022-12-16 19:45:39 -0700
commit770f6728f60b50a8bed3f73e3b052f1a57f1262d (patch)
tree8ec1d6ce476cabafd80d6356ab940537050bd057 /users
parent12567f6891ad591390cbd74c0e7b77a4a024a24e (diff)
downloadtakahe-770f6728f60b50a8bed3f73e3b052f1a57f1262d.tar.gz
takahe-770f6728f60b50a8bed3f73e3b052f1a57f1262d.tar.bz2
takahe-770f6728f60b50a8bed3f73e3b052f1a57f1262d.zip
Fix mastodon LD namespace
Fixes #179
Diffstat (limited to 'users')
-rw-r--r--users/models/identity.py7
1 files changed, 2 insertions, 5 deletions
diff --git a/users/models/identity.py b/users/models/identity.py
index d6c35d2..9462fee 100644
--- a/users/models/identity.py
+++ b/users/models/identity.py
@@ -321,7 +321,7 @@ class Identity(StatorModel):
},
"published": self.created.strftime("%Y-%m-%dT%H:%M:%SZ"),
"url": self.absolute_profile_uri(),
- "http://joinmastodon.org/ns#discoverable": self.discoverable,
+ "toot:discoverable": self.discoverable,
}
if self.name:
response["name"] = self.name
@@ -348,7 +348,6 @@ class Identity(StatorModel):
def to_ap_tag(self):
"""
Return this Identity as an ActivityPub Tag
- http://joinmastodon.org/ns#Mention
"""
return {
"href": self.actor_uri,
@@ -472,9 +471,7 @@ class Identity(StatorModel):
self.public_key_id = document.get("publicKey", {}).get("id")
self.icon_uri = document.get("icon", {}).get("url")
self.image_uri = document.get("image", {}).get("url")
- self.discoverable = document.get(
- "http://joinmastodon.org/ns#discoverable", True
- )
+ self.discoverable = document.get("toot:discoverable", True)
# Profile links/metadata
self.metadata = []
for attachment in get_list(document, "attachment"):