summaryrefslogtreecommitdiffstats
path: root/activities
diff options
context:
space:
mode:
authorAndrew Godwin2022-12-16 16:38:52 -0700
committerAndrew Godwin2022-12-16 16:38:52 -0700
commit45c6978bc397691b22db0360b16b19979eac7dce (patch)
tree8e22839cd8a7b685f1d4491762c5d56aa5960dee /activities
parent1bcdff79e7e14b2166056d3b16531b32474c374b (diff)
downloadtakahe-45c6978bc397691b22db0360b16b19979eac7dce.tar.gz
takahe-45c6978bc397691b22db0360b16b19979eac7dce.tar.bz2
takahe-45c6978bc397691b22db0360b16b19979eac7dce.zip
User admin and LD schema fixes
Diffstat (limited to 'activities')
-rw-r--r--activities/models/post.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/activities/models/post.py b/activities/models/post.py
index b5821f7..e8698d3 100644
--- a/activities/models/post.py
+++ b/activities/models/post.py
@@ -659,7 +659,7 @@ class Post(StatorModel):
if update or created:
post.content = data["content"]
post.summary = data.get("summary")
- post.sensitive = data.get("as:sensitive", False)
+ post.sensitive = data.get("sensitive", False)
post.url = data.get("url")
post.published = parse_ld_date(data.get("published"))
post.edited = parse_ld_date(data.get("updated"))
@@ -670,7 +670,7 @@ class Post(StatorModel):
if tag["type"].lower() == "mention":
mention_identity = Identity.by_actor_uri(tag["href"], create=True)
post.mentions.add(mention_identity)
- elif tag["type"].lower() == "as:hashtag":
+ elif tag["type"].lower() == "hashtag":
post.hashtags.append(tag["name"].lower().lstrip("#"))
elif tag["type"].lower() == "http://joinmastodon.org/ns#emoji":
emoji = Emoji.by_ap_tag(post.author.domain, tag, create=True)