Fixes newThread regression.

This commit is contained in:
Dominik Picheta 2018-05-22 23:04:08 +01:00
commit b9df0ec895

View file

@ -447,9 +447,7 @@ proc executeReply(c: TForumData, threadId: int, content: string,
let isLocked = getValue( let isLocked = getValue(
db, db,
sql""" sql"""
select isLocked from thread where id in ( select isLocked from thread where id = ?;
select thread from post where id = ?
)
""", """,
threadId threadId
) )