Don't santinize incoming post content
Helps with forwards compatibility
This commit is contained in:
parent
f6132a8e21
commit
e38e176784
|
@ -278,14 +278,14 @@ class Post(StatorModel):
|
||||||
post = cls.objects.create(
|
post = cls.objects.create(
|
||||||
object_uri=data["id"],
|
object_uri=data["id"],
|
||||||
author=author,
|
author=author,
|
||||||
content=sanitize_post(data["content"]),
|
content=data["content"],
|
||||||
local=False,
|
local=False,
|
||||||
)
|
)
|
||||||
created = True
|
created = True
|
||||||
else:
|
else:
|
||||||
raise KeyError(f"No post with ID {data['id']}", data)
|
raise KeyError(f"No post with ID {data['id']}", data)
|
||||||
if update or created:
|
if update or created:
|
||||||
post.content = sanitize_post(data["content"])
|
post.content = data["content"]
|
||||||
post.summary = data.get("summary")
|
post.summary = data.get("summary")
|
||||||
post.sensitive = data.get("as:sensitive", False)
|
post.sensitive = data.get("as:sensitive", False)
|
||||||
post.url = data.get("url")
|
post.url = data.get("url")
|
||||||
|
|
Loading…
Reference in New Issue