[pLog-svn] r7218 - plog/branches/lifetype-1.2/class/action
jondaley at devel.lifetype.net
jondaley at devel.lifetype.net
Mon Apr 28 23:45:44 EDT 2014
Author: jondaley
Date: 2014-04-28 23:45:44 -0400 (Mon, 28 Apr 2014)
New Revision: 7218
Modified:
plog/branches/lifetype-1.2/class/action/addcommentaction.class.php
Log:
we don't need to notify users about spam comments, right? I thought this used to work. It might be because I'm using the moderate plugin and have it set to automatically mark repeated moderated comments as spam
Modified: plog/branches/lifetype-1.2/class/action/addcommentaction.class.php
===================================================================
--- plog/branches/lifetype-1.2/class/action/addcommentaction.class.php 2013-11-25 18:14:37 UTC (rev 7217)
+++ plog/branches/lifetype-1.2/class/action/addcommentaction.class.php 2014-04-29 03:45:44 UTC (rev 7218)
@@ -232,8 +232,11 @@
// finally, check if there was any user who wanted to be notified of new comments
// to this post...
- $notifier = new ArticleNotifications();
- $notifier->notifyUsers( $article->getId(), $this->_blogInfo);
+ if($comment->getStatus() != COMMENT_STATUS_SPAM){
+ // Users don't want to be notified about spam
+ $notifier = new ArticleNotifications();
+ $notifier->notifyUsers( $article->getId(), $this->_blogInfo);
+ }
// fire the post event...
$this->notifyEvent( EVENT_POST_COMMENT_ADD, Array( "comment" => &$comment ));
More information about the pLog-svn
mailing list