holyandrew� (holyandrew) wrote in changelog,
holyandrew�
holyandrew
changelog

[livejournal] r22071: LJSUP-12322: Do not display captcha if u...

Committer: akanashin
LJSUP-12322: Do not display captcha if user has social capital more than 15
U   trunk/cgi-bin/LJ/Talk/Post.pm
Modified: trunk/cgi-bin/LJ/Talk/Post.pm
===================================================================
--- trunk/cgi-bin/LJ/Talk/Post.pm	2012-05-25 13:51:06 UTC (rev 22070)
+++ trunk/cgi-bin/LJ/Talk/Post.pm	2012-05-25 13:53:41 UTC (rev 22071)
@@ -618,7 +618,7 @@
     ##
     ##
     my $soc_cap = LJ::PersonalStats::DB->fetch_raw('ratings', { func => 'get_authority', journal_id => $commenter->userid });
-    $soc_cap = $soc_cap->{result}->{authority};
+    $soc_cap = int($soc_cap->{result}->{authority}/1000);
     return if $soc_cap > 15;
  
  

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