Igor Gariev (gariev) wrote in changelog,
Igor Gariev
gariev
changelog

[livejournal] r19000: LJSUP-8724: Allow trusted journals to di...

Committer: gariev
LJSUP-8724: Allow trusted journals to display more than 50 entries on recent page

U   trunk/cgi-bin/LJ/S2/RecentPage.pm
Modified: trunk/cgi-bin/LJ/S2/RecentPage.pm
===================================================================
--- trunk/cgi-bin/LJ/S2/RecentPage.pm	2011-04-28 02:06:36 UTC (rev 18999)
+++ trunk/cgi-bin/LJ/S2/RecentPage.pm	2011-04-28 02:46:00 UTC (rev 19000)
@@ -71,7 +71,7 @@
 
     my $itemshow = S2::get_property_value($opts->{'ctx'}, "page_recent_items")+0;
     if ($itemshow < 1) { $itemshow = 20; }
-    elsif ($itemshow > 50) { $itemshow = 50; }
+    elsif ($itemshow > 50 && !$LJ::S2_TRUSTED{ $u->{'userid'} } ) { $itemshow = 50; }
 
     my $skip = $get->{'skip'}+0;
     my $maxskip = $LJ::MAX_SCROLLBACK_LASTN-$itemshow;

Tags: gariev, 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