X-Git-Url: https://ruin.nu/git/?a=blobdiff_plain;f=ND%2FWeb%2FForum.pm;fp=ND%2FWeb%2FForum.pm;h=be9a10f7c5fddf550fd22cd1ae316074633e26b6;hb=e1e188775dd3c5e1e9472661dc2006c3cca29e1c;hp=8eca745423053ee6332f147d8c9df52f00a5cc7e;hpb=357771321a777a2dd3ec8524c3cb26a824ecf2e3;p=ndwebbie.git diff --git a/ND/Web/Forum.pm b/ND/Web/Forum.pm index 8eca745..be9a10f 100644 --- a/ND/Web/Forum.pm +++ b/ND/Web/Forum.pm @@ -54,7 +54,12 @@ ORDER BY fp.time ASC $post->{message} = parseMarkup($post->{message}); push @posts,$post; } + + if (defined param('cmd') && param('cmd') eq 'Preview'){ + push @posts,{message => parseMarkup(escapeHTML(param('message'))), unread => 1, username => 'PREVIEW', Time => 'Not submitted yet', NewPosts => $old ? 1 : 0}; + } $template->param(Posts => \@posts); + $template->param(Message => param('message')); markThreadAsRead($thread->{id});