diff --git a/html/inc/forum.inc b/html/inc/forum.inc index 1b28645958..6588808c82 100644 --- a/html/inc/forum.inc +++ b/html/inc/forum.inc @@ -787,6 +787,14 @@ function show_post2($post, $n) { $user = lookup_user_id($post->user); $title = cleanup_title($thread->title); $m = $n%2; + if($post->hidden) { + $deleted_text = array( "Obscene", "Flame/Hate", "Commercial spam" ); //Todo: factor this array out, it is also used elsewhere + $deleted = "
[Deleted " . + "by a moderator as " . $deleted_text[$post->hidden-1] . + "] "; + } else { + $deleted = ""; + }; echo " @@ -794,7 +802,7 @@ function show_post2($post, $n) { id\">$forum->title : id\">$title
- Posted $when by $user->name + Posted $when by $user->name $deleted
$content