diff --git a/src/forum.nim b/src/forum.nim index 02f3b34..582b4a9 100644 --- a/src/forum.nim +++ b/src/forum.nim @@ -1076,7 +1076,7 @@ proc updatePost(c: TForumData, postId: int, content: string, # Verify that the current user has permissions to edit the specified post. let creation = fromUnix(postRow[1].parseInt) let isArchived = (getTime() - creation).weeks > 8 - let canEdit = c.rank == Admin or c.username == postRow[0] + let canEdit = c.rank == Admin or c.userid == postRow[0] if isArchived: raise newForumError("This post is archived and can no longer be edited") if not canEdit: diff --git a/src/frontend/newthread.nim b/src/frontend/newthread.nim index 8ce4623..3f94867 100644 --- a/src/frontend/newthread.nim +++ b/src/frontend/newthread.nim @@ -49,7 +49,7 @@ when defined(js): tdiv(class="title"): p(): text "New Thread" tdiv(class="content"): - input(class="form-input", `type`="text", name="username", + input(class="form-input", `type`="text", name="subject", placeholder="Type the title here", onChange=(e: Event, n: VNode) => onSubjectChange(e, n, state)) if state.error.isSome():