X-Git-Url: https://ruin.nu/git/?a=blobdiff_plain;f=ND%2FWeb%2FPages%2FForum.pm;h=81943a9707d7b2e2e47c06384b3591a162810fda;hb=c5cc1151b5a4f1e52eb577a78df1f79dfdc193db;hp=76a7e62438611ff9990735d4d304f79e0eaaf8f5;hpb=a0338ef8c49837940c009341b135fd038d8acf7a;p=ndwebbie.git diff --git a/ND/Web/Pages/Forum.pm b/ND/Web/Pages/Forum.pm index 76a7e62..81943a9 100644 --- a/ND/Web/Pages/Forum.pm +++ b/ND/Web/Pages/Forum.pm @@ -88,8 +88,11 @@ sub render_body { } if (param('cmd') eq 'Submit' and $thread && $thread->{post}){ addForumPost($DBH,$thread,$ND::UID,param('message')); + $self->{RETURN} = 'REDIRECT'; + $self->{REDIR_LOCATION} = "/forum?t=$thread->{id}#NewPosts"; } $DBH->commit or $ND::ERROR .= p($DBH->errstr); + return if $self->{RETURN}; } if(param('cmd') eq 'Move' && $board->{moderate}){ $DBH->begin_work;