aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBlake DeMarcy <ofunknowndescent@gmail.com>2017-05-02 17:09:00 -0500
committerBlake DeMarcy <ofunknowndescent@gmail.com>2017-05-02 17:09:00 -0500
commitfe1d1d51f34f97dcddf337af61045daa8046e9d4 (patch)
treecf1967a0aed9dc1208cc2a232d24710a9263294a
parent52c47e75297f456f7765f34fffcbd75113ad2d67 (diff)
downloadbbj-fe1d1d51f34f97dcddf337af61045daa8046e9d4.tar.gz
disable formatting by default
-rw-r--r--server.py4
-rw-r--r--src/db.py2
2 files changed, 3 insertions, 3 deletions
diff --git a/server.py b/server.py
index 232e842..be159b5 100644
--- a/server.py
+++ b/server.py
@@ -359,7 +359,7 @@ class API(object):
validate(args, ["body", "title"])
thread = db.thread_create(
database, user["user_id"], args["body"],
- args["title"], args.get("send_raw"))
+ args["title"], args.get("send_raw", True))
cherrypy.thread_data.usermap = \
create_usermap(database, thread["messages"])
return thread
@@ -378,7 +378,7 @@ class API(object):
validate(args, ["thread_id", "body"])
return db.thread_reply(
database, user["user_id"], args["thread_id"],
- args["body"], args.get("send_raw"))
+ args["body"], args.get("send_raw", True))
thread_reply.doctype = "Threads & Messages"
@api_method
diff --git a/src/db.py b/src/db.py
index ff4fc3e..9756bdf 100644
--- a/src/db.py
+++ b/src/db.py
@@ -171,7 +171,7 @@ def thread_create(connection, author_id, body, title, send_raw=False):
return thread_get(connection, thread_id)
-def thread_reply(connection, author_id, thread_id, body, send_raw=False, time_override=None):
+def thread_reply(connection, author_id, thread_id, body, send_raw=True, time_override=None):
"""
Submit a new reply for thread_id. Return the new reply object.
Un proyecto texto-plano.xyz