Skip to content

Commit 6e20732

Browse files
committed
Fixes post deletion for users.
1 parent 0e30f4f commit 6e20732

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/forum.nim

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -679,7 +679,7 @@ proc executeDeletePost(c: TForumData, postId: int) =
679679
select p.id from post p
680680
where p.author = ? and p.id = ?
681681
"""
682-
let id = getValue(db, postQuery, postId, c.username)
682+
let id = getValue(db, postQuery, c.username, postId)
683683

684684
if id.len == 0 and c.rank < Admin:
685685
raise newForumError("You cannot delete this post")

0 commit comments

Comments
 (0)