[Jifty-commit] r5788 - jifty/trunk/lib/Jifty/Plugin/Comment
Jifty commits
jifty-commit at lists.jifty.org
Wed Sep 3 03:32:15 EDT 2008
Author: yves
Date: Wed Sep 3 03:32:14 2008
New Revision: 5788
Modified:
jifty/trunk/lib/Jifty/Plugin/Comment/View.pm
Log:
don't show title and body if comment is marked as spam or unpublished
Modified: jifty/trunk/lib/Jifty/Plugin/Comment/View.pm
==============================================================================
--- jifty/trunk/lib/Jifty/Plugin/Comment/View.pm (original)
+++ jifty/trunk/lib/Jifty/Plugin/Comment/View.pm Wed Sep 3 03:32:14 2008
@@ -112,13 +112,15 @@
};
unless ($top) {
- h5 {
- a {
- attr { name => 'comment-'.$comment->id };
- $comment->title
+ if ($comment->status eq 'ham' && $comment->published) {
+ h5 {
+ a {
+ attr { name => 'comment-'.$comment->id };
+ $comment->title
+ };
};
};
- }
+ };
div {
{ class is 'comment-info' }
@@ -138,8 +140,10 @@
};
};
- div {
- outs_raw scrub_html($comment->body);
+ if ($comment->status eq 'ham' && $comment->published) {
+ div {
+ outs_raw scrub_html($comment->body);
+ };
};
};
More information about the Jifty-commit
mailing list