mirror of
https://github.com/silverstripe/silverstripe-cms
synced 2024-10-22 08:05:56 +02:00
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
This commit is contained in:
parent
88f8ff468f
commit
37c1b8238d
@ -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();
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user