protected function checkSpamStatus($comment, $profile) { $message = new MollomMessage; $message->title = $comment->title; $message->body = $comment->comment; $message->authorName = $profile->name; $message->authorEmail = $profile->email; $message->authorWebsite = $profile->website; $comment->spamStatus = $message->check(); $comment->spamSessionID = Session::get('mollom/sessionid'); }
public function spam($commentOn, $comment, $feedback) { $comment->spamStatus = PropertySpamStatus::SPAM; $comment->save(); MollomMessage::feedback($comment->spamSessionID, $feedback); $this->notice(t('Comment marked as spam')); $this->redirectOnSuccess($commentOn); }
public function testFeedbackProblem() { CoOrg::config()->set('mollom/serverlist', array('outdated')); $this->assertTrue(MollomMessage::feedback('some-sess-id', 'profanity')); }