holyandrew (holyandrew) wrote in changelog,
holyandrew
holyandrew
changelog

[ljcom] r12012: LJSUP-12323: Display entries only from u...

Committer: akanashin
LJSUP-12323: Display entries only from users with social capital more than 10
U   trunk/htdocs/stats/latest.bml
Modified: trunk/htdocs/stats/latest.bml
===================================================================
--- trunk/htdocs/stats/latest.bml	2012-05-25 12:02:04 UTC (rev 12011)
+++ trunk/htdocs/stats/latest.bml	2012-05-25 12:49:33 UTC (rev 12012)
@@ -60,9 +60,9 @@
         next if $rawposts->{prop}{$id}{unknown8bit};
 
         ## Display entries only from users with social capital more than 10
-        my $u = LJ::load_userid($p->{journalid});
+        my $u = LJ::load_userid($p->{journalu}->{userid});
         if ($u) {
-            my $position = LJ::PersonalStats::DB->fetch_raw('get_authority', {journal_id => $u->userid});
+            my $position = LJ::PersonalStats::DB->fetch_raw('ratings', { func => 'get_authority', journal_id => $u->userid});
 
             my $soc_capital = 0;
             if (ref $position eq 'HASH') {

Tags: akanashin, bml, holyandrew, ljcom
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