aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorBlake DeMarcy <ofunknowndescent@gmail.com>2017-03-03 17:16:11 -0600
committerBlake DeMarcy <ofunknowndescent@gmail.com>2017-03-03 17:16:11 -0600
commit410bb78d1e2ff3b0e40ab77cb3bd3a7ea9207690 (patch)
tree3835429bb54bef98045bc0bbdafc994c9acf56c6 /src
parent53961bbece1f4d24674ba2fc706c8525243df624 (diff)
downloadbbj-410bb78d1e2ff3b0e40ab77cb3bd3a7ea9207690.tar.gz
silly formatting changes
Diffstat (limited to 'src')
-rw-r--r--src/endpoints.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/endpoints.py b/src/endpoints.py
index 35a38dc..9317ac3 100644
--- a/src/endpoints.py
+++ b/src/endpoints.py
@@ -166,8 +166,13 @@ def edit_post(json):
ok, obj = db.edit_handler(json, thread)
if ok:
+
+ if json.get("reformat"):
+ json["body"] = formatting.parse(json["body"])
+
obj["body"] = json["body"]
obj["lastmod"] = time()
obj["edited"] = True
db.thread_dump(json["thread_id"], thread)
+
return obj
Un proyecto texto-plano.xyz