changelog_bot (changelog_bot) wrote in changelog,
changelog_bot
changelog_bot
changelog

[livejournal] r23546: LJSUP-14805: Turn on spamprotection by d...

Committer: tnurutdinov
LJSUP-14805: Turn on spamprotection by default
U   trunk/cgi-bin/LJ/User.pm
Modified: trunk/cgi-bin/LJ/User.pm
===================================================================
--- trunk/cgi-bin/LJ/User.pm	2013-01-15 13:36:54 UTC (rev 23545)
+++ trunk/cgi-bin/LJ/User.pm	2013-01-16 07:36:49 UTC (rev 23546)
@@ -6576,8 +6576,8 @@
     my $u = shift;
     return 0 if $LJ::DISABLED{'spam_button'};
     my $spamprotection = $u->prop('spamprotection');
-    return 1 if (!defined($spamprotection) || $spamprotection eq 'Y');
-    return 0;
+    return 0 if $spamprotection eq 'N';
+    return 1;
 }
 
 sub check_non_whitelist_enabled {

Tags: livejournal, pm, tnurutdinov
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