re-enable formatting by default since it is less intrusive now
parent
78ee2fc531
commit
5cfac74c95
|
@ -380,7 +380,7 @@ class API(object):
|
||||||
validate(args, ["body", "title"])
|
validate(args, ["body", "title"])
|
||||||
thread = db.thread_create(
|
thread = db.thread_create(
|
||||||
database, user["user_id"], args["body"],
|
database, user["user_id"], args["body"],
|
||||||
args["title"], args.get("send_raw", True))
|
args["title"], args.get("send_raw"))
|
||||||
cherrypy.thread_data.usermap = \
|
cherrypy.thread_data.usermap = \
|
||||||
create_usermap(database, thread["messages"])
|
create_usermap(database, thread["messages"])
|
||||||
return thread
|
return thread
|
||||||
|
@ -404,7 +404,7 @@ class API(object):
|
||||||
validate(args, ["thread_id", "body"])
|
validate(args, ["thread_id", "body"])
|
||||||
return db.thread_reply(
|
return db.thread_reply(
|
||||||
database, user["user_id"], args["thread_id"],
|
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.doctype = "Threads & Messages"
|
||||||
thread_reply.arglist = (
|
thread_reply.arglist = (
|
||||||
("thread_id", "string: the id for the thread this message should post to."),
|
("thread_id", "string: the id for the thread this message should post to."),
|
||||||
|
|
|
@ -171,7 +171,7 @@ def thread_create(connection, author_id, body, title, send_raw=False):
|
||||||
return thread_get(connection, thread_id)
|
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.
|
Submit a new reply for thread_id. Return the new reply object.
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue