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

[livejournal] r18575: LJSUP-8194. Post from suspend accounts s...

Committer: gprochaev
LJSUP-8194. Post from suspend accounts showing in the recent posts

U   trunk/bin/worker/category-recent-posts
Modified: trunk/bin/worker/category-recent-posts
===================================================================
--- trunk/bin/worker/category-recent-posts	2011-03-16 05:48:56 UTC (rev 18574)
+++ trunk/bin/worker/category-recent-posts	2011-03-16 06:35:55 UTC (rev 18575)
@@ -72,6 +72,8 @@
 
             ## Add tags for every entry
             my $e_obj = LJ::Entry->new ($u->{userid}, jitemid => $entry->{itemid});
+            my $poster = $e_obj->poster;
+            next if $poster->is_suspended;
             my @tags = $e_obj->tags;
             if (scalar @tags) {
                 my $cat = LJ::Browse->load_by_id ($rec->{catid});

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