holyandrew (holyandrew) wrote in changelog,
holyandrew
holyandrew
changelog

[ljcom] r12336: LJSUP-13059: Display entries only from u...

Committer: akanashin
LJSUP-13059: Display entries only from users with social capital more than 10 in the AQUA
U   trunk/cgi-bin/ljcom.pl
Modified: trunk/cgi-bin/ljcom.pl
===================================================================
--- trunk/cgi-bin/ljcom.pl	2012-07-24 10:51:54 UTC (rev 12335)
+++ trunk/cgi-bin/ljcom.pl	2012-07-24 10:55:03 UTC (rev 12336)
@@ -1094,7 +1094,6 @@
 
     ## Display latest entries only from users with social capital more than 10
     my $soc_capital = $up->get_social_capital();
-    
     if ($soc_capital > 10) { 
         push @$joblist, TheSchwartz::Job->new_from_array("LJ::Worker::LatestPosts", {
             'timepost' => time(),
@@ -1106,15 +1105,15 @@
             'img' => $img,
             'taglist' => $arg->{'props'}->{'taglist'},
         });
+    
+        if ($security eq "public") {
+            push @$joblist, TheSchwartz::Job->new_from_array("LJ::Worker::AtomStreamInject", {
+                'journalid' => $uo->{'userid'},
+                'jitemid'   => $arg->{'itemid'},
+                'ip'        => LJ::get_remote_ip(),
+            });
+        }
     }
-
-    if ($security eq "public") {
-        push @$joblist, TheSchwartz::Job->new_from_array("LJ::Worker::AtomStreamInject", {
-            'journalid' => $uo->{'userid'},
-            'jitemid'   => $arg->{'itemid'},
-            'ip'        => LJ::get_remote_ip(),
-        });
-    }
 });
 
 # TEMP: Log unknown8bit posts to decide if they can be disabled later

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