diff options
author | Andrew Godwin | 2022-12-16 16:38:52 -0700 |
---|---|---|
committer | Andrew Godwin | 2022-12-16 16:38:52 -0700 |
commit | 45c6978bc397691b22db0360b16b19979eac7dce (patch) | |
tree | 8e22839cd8a7b685f1d4491762c5d56aa5960dee /activities | |
parent | 1bcdff79e7e14b2166056d3b16531b32474c374b (diff) | |
download | takahe-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.py | 4 |
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) |