aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBlake DeMarcy <ofunknowndescent@gmail.com>2017-05-04 18:22:10 -0500
committerBlake DeMarcy <ofunknowndescent@gmail.com>2017-05-04 18:22:10 -0500
commit5cfac74c959f1871c529f89fb1d044665b69704d (patch)
tree1caa8d572953e4563120c0d3ea5b355ba8363662
parent78ee2fc531d71ddb9fbc908a2be9a052722e76b9 (diff)
downloadbbj-5cfac74c959f1871c529f89fb1d044665b69704d.tar.gz
re-enable formatting by default since it is less intrusive now
-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 456c560..126720d 100644
--- a/server.py
+++ b/server.py
@@ -380,7 +380,7 @@ class API(object):
validate(args, ["body", "title"])
thread = db.thread_create(
database, user["user_id"], args["body"],
- args["title"], args.get("send_raw", True))
+ args["title"], args.get("send_raw"))
cherrypy.thread_data.usermap = \
create_usermap(database, thread["messages"])
return thread
@@ -404,7 +404,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", True))
+ args["body"], args.get("send_raw"))
thread_reply.doctype = "Threads & Messages"
thread_reply.arglist = (
("thread_id", "string: the id for the thread this message should post to."),
diff --git a/src/db.py b/src/db.py
index 9756bdf..ff4fc3e 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=True, time_override=None):
+def thread_reply(connection, author_id, thread_id, body, send_raw=False, time_override=None):
"""
Submit a new reply for thread_id. Return the new reply object.
Un proyecto texto-plano.xyz