[livejournal] r19000: LJSUP-8724: Allow trusted journals to di...
Committer: gariev
LJSUP-8724: Allow trusted journals to display more than 50 entries on recent pageU 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;
