alf (red_alf) wrote in changelog,
alf
red_alf
changelog

[livejournal] r20433: LJSUP-10234: Error in worker procces-esn

Committer: afedorov
LJSUP-10234: Error in worker procces-esn

U   trunk/cgi-bin/LJ/Event/JournalNewComment.pm
Modified: trunk/cgi-bin/LJ/Event/JournalNewComment.pm
===================================================================
--- trunk/cgi-bin/LJ/Event/JournalNewComment.pm	2011-10-26 06:05:35 UTC (rev 20432)
+++ trunk/cgi-bin/LJ/Event/JournalNewComment.pm	2011-10-26 08:23:50 UTC (rev 20433)
@@ -742,12 +742,12 @@
                                          );
         my $friend_ofs_count = $fro_m->friend_ofs;
         
-        return 0 if $friend_ofs_count <= $LJ::SPAM_MAX_FRIEND_OFS &&
+        return if $friend_ofs_count <= $LJ::SPAM_MAX_FRIEND_OFS &&
                     (time() - $comment_author->timecreate) / 86400 <= $LJ::SPAM_MAX_DAYS_CREATED;
 
         my $spam = 0;
         LJ::run_hook('spam_in_friends_journals', \$spam, $entry_journal, $comment_author);
-        return 0 if $spam;
+        return if $spam;
     }
 
     my $acquire_sub_slot = sub {

Tags: afedorov, livejournal, pm, red_alf
Subscribe
  • Post a new comment

    Error

    Anonymous comments are disabled in this journal

    default userpic

    Your reply will be screened

    Your IP address will be recorded 

  • 0 comments