summaryrefslogtreecommitdiffstats
path: root/activities/models
diff options
context:
space:
mode:
authorAndrew Godwin2022-11-21 20:00:35 -0700
committerAndrew Godwin2022-11-21 20:00:35 -0700
commite38e17678432613111ea220260c5d76677a84d3e (patch)
tree184767c338ef94b242d1fea1f57ae581d6303e01 /activities/models
parentf6132a8e21aef93f11359048cf544bcad1f9a2fc (diff)
downloadtakahe-e38e17678432613111ea220260c5d76677a84d3e.tar.gz
takahe-e38e17678432613111ea220260c5d76677a84d3e.tar.bz2
takahe-e38e17678432613111ea220260c5d76677a84d3e.zip
Don't santinize incoming post content
Helps with forwards compatibility
Diffstat (limited to 'activities/models')
-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 b5cd4d6..6888b3f 100644
--- a/activities/models/post.py
+++ b/activities/models/post.py
@@ -278,14 +278,14 @@ class Post(StatorModel):
post = cls.objects.create(
object_uri=data["id"],
author=author,
- content=sanitize_post(data["content"]),
+ content=data["content"],
local=False,
)
created = True
else:
raise KeyError(f"No post with ID {data['id']}", data)
if update or created:
- post.content = sanitize_post(data["content"])
+ post.content = data["content"]
post.summary = data.get("summary")
post.sensitive = data.get("as:sensitive", False)
post.url = data.get("url")