From 37c1b8238d8a52bd639f3659a1eca46ea1c41af9 Mon Sep 17 00:00:00 2001 From: Saophalkun Ponlu Date: Wed, 28 Apr 2010 05:33:18 +0000 Subject: [PATCH] ENHANCEMENT: do not show comments that need moderation in the comment rss feed git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/cms/branches/2.3@103659 467b73ca-7a2a-4603-9d3b-597d59a354a9 --- code/sitefeatures/PageComment.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/code/sitefeatures/PageComment.php b/code/sitefeatures/PageComment.php index a2d699ee..cd7657f9 100755 --- a/code/sitefeatures/PageComment.php +++ b/code/sitefeatures/PageComment.php @@ -152,7 +152,7 @@ class PageComment extends DataObject { class PageComment_Controller extends Controller { function rss() { $parentcheck = isset($_REQUEST['pageid']) ? "ParentID = " . (int) $_REQUEST['pageid'] : "ParentID > 0"; - $comments = DataObject::get("PageComment", "$parentcheck AND IsSpam=0", "Created DESC", "", 10); + $comments = DataObject::get("PageComment", "$parentcheck AND IsSpam=0 AND NeedsModeration = 0", "Created DESC", "", 10); if(!isset($comments)) { $comments = new DataObjectSet(); }