wisest owl (wisest_owl) wrote in changelog,
wisest owl
wisest_owl
changelog

[livejournal] r18605: LJSUP-8204. remove post in recent post f...

Committer: gprochaev
LJSUP-8204. remove post in recent post from deleted community

U   trunk/cgi-bin/LJ/Browse.pm
Modified: trunk/cgi-bin/LJ/Browse.pm
===================================================================
--- trunk/cgi-bin/LJ/Browse.pm	2011-03-17 07:58:04 UTC (rev 18604)
+++ trunk/cgi-bin/LJ/Browse.pm	2011-03-17 08:10:31 UTC (rev 18605)
@@ -996,8 +996,8 @@
         }
         @entries =
             grep {
-                my $poster = $_->poster;
-                $_->is_suspended || $poster->is_suspended ? 0 : 1;
+                ## Filter off suspended entries, deleted communities, suspended posters
+                $_->is_suspended || $_->journal->is_deleted || $_->poster->is_suspended ? 0 : 1;
             }
             map { LJ::Entry->new ($_->{journalid}, jitemid => $_->{jitemid}) }      ## Create LJ::Entry object
             grep { $_->{journalid} }                                                ## remove SEO posts
@@ -1014,8 +1014,8 @@
             );
             @entries =
                 grep {
-                    my $poster = $_->poster;
-                    $_->is_suspended || $poster->is_suspended ? 0 : 1;
+                    ## Filter off suspended entries, deleted communities, suspended posters
+                    $_->is_suspended || $_->journal->is_deleted || $_->poster->is_suspended ? 0 : 1;
                 }
                 map { LJ::Entry->new ($_->{journalid}, jitemid => $_->{jitemid}) }
                 @$post_ids;

Tags: livejournal, pm, wisest-owl
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