Committer: akanashin
LJSUP-12322: Do not display captcha if user has social capital more than 15U 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;