diff --git a/lib/PostText/Controller/Remark.pm b/lib/PostText/Controller/Remark.pm index 65da5df..d06293e 100644 --- a/lib/PostText/Controller/Remark.pm +++ b/lib/PostText/Controller/Remark.pm @@ -52,7 +52,7 @@ sub create($self) { $self->stash( thread => $thread, last_remark => $last_remark - ); + ); return $self->render; } diff --git a/lib/PostText/Model/Thread.pm b/lib/PostText/Model/Thread.pm index 248ac3d..21eb24c 100644 --- a/lib/PostText/Model/Thread.pm +++ b/lib/PostText/Model/Thread.pm @@ -17,12 +17,12 @@ sub create($self, $author, $title, $body, $hidden = 0, $flagged = 0) { $self->pg->db->query(<<~'END_SQL', @data)->hash->{'thread_id'}; INSERT INTO threads ( - thread_author, - thread_title, - thread_body, - hidden_status, - flagged_status - ) + thread_author, + thread_title, + thread_body, + hidden_status, + flagged_status + ) VALUES (?, ?, ?, ?, ?) RETURNING thread_id; END_SQL