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(
db,
sql"""
select isLocked from thread where id in (
select thread from post where id = ?
)
select isLocked from thread where id = ?;
""",
threadId
)