remove old hack for string input

pull/4/head
Blake DeMarcy 2017-05-03 17:35:02 -05:00
parent 8cd30321f2
commit b421597c38
1 changed files with 1 additions and 2 deletions

View File

@ -299,8 +299,7 @@ class API(object):
non-nil, will include a "messages" key with the object, whose sole
content is the original message (post_id 0).
"""
op = isinstance(args, dict) and args.get("include_op")
threads = db.thread_index(database, include_op=op)
threads = db.thread_index(database, include_op=args.get("include_op"))
cherrypy.thread_data.usermap = create_usermap(database, threads, True)
return threads
thread_index.doctype = "Threads & Messages"