diff options
author | Andrew Godwin | 2022-11-21 20:00:35 -0700 |
---|---|---|
committer | Andrew Godwin | 2022-11-21 20:00:35 -0700 |
commit | e38e17678432613111ea220260c5d76677a84d3e (patch) | |
tree | 184767c338ef94b242d1fea1f57ae581d6303e01 /activities/models | |
parent | f6132a8e21aef93f11359048cf544bcad1f9a2fc (diff) | |
download | takahe-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.py | 4 |
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") |