From 46d6a3b6bb45681caf4ff9bfcde3c4de48308f71 Mon Sep 17 00:00:00 2001 From: Joey Yakimowich-Payne Date: Sat, 15 Feb 2020 08:37:28 -0700 Subject: [PATCH] Fix indentation --- src/forum.nim | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/forum.nim b/src/forum.nim index a551b73..6c6f55a 100644 --- a/src/forum.nim +++ b/src/forum.nim @@ -528,14 +528,14 @@ proc updatePost(c: TForumData, postId: int, content: string, exec(db, crud(crUpdate, "thread", "name"), subject.get(), threadId) proc updateThread(c: TForumData, threadId: string, queryKeys: seq[string], queryValues: seq[string]) = - let threadAuthor = selectThreadAuthor(threadId.parseInt) + let threadAuthor = selectThreadAuthor(threadId.parseInt) - # Verify that the current user has permissions to edit the specified thread. - let canEdit = c.rank == Admin or c.userid == threadAuthor.name - if not canEdit: - raise newForumError("You cannot edit this thread") + # Verify that the current user has permissions to edit the specified thread. + let canEdit = c.rank == Admin or c.userid == threadAuthor.name + if not canEdit: + raise newForumError("You cannot edit this thread") - exec(db, crud(crUpdate, "thread", queryKeys), queryValues) + exec(db, crud(crUpdate, "thread", queryKeys), queryValues) proc executeNewThread(c: TForumData, subject, msg, categoryID: string): (int64, int64) = const