From e38e17678432613111ea220260c5d76677a84d3e Mon Sep 17 00:00:00 2001 From: Andrew Godwin Date: Mon, 21 Nov 2022 20:00:35 -0700 Subject: Don't santinize incoming post content Helps with forwards compatibility --- activities/models/post.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'activities/models') 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") -- cgit v1.2.3