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

[livejournal] r18146: LJSUP-7816. Rollbacked

Committer: gprochaev
LJSUP-7816. Rollbacked
U   trunk/cgi-bin/LJ/S2/EntryPage.pm
U   trunk/cgi-bin/LJ/Talk.pm
Modified: trunk/cgi-bin/LJ/S2/EntryPage.pm
===================================================================
--- trunk/cgi-bin/LJ/S2/EntryPage.pm	2011-01-31 07:28:51 UTC (rev 18145)
+++ trunk/cgi-bin/LJ/S2/EntryPage.pm	2011-01-31 08:07:41 UTC (rev 18146)
@@ -466,7 +466,7 @@
         'enabled' => $entry->comments_shown,
         'locked' => !$entry->posting_comments_allowed,
         'screened' => ($entry->prop("hasscreened") && $remote &&
-                       ($remote->{'user'} eq $u->{'user'} || $remote->can_manage($u) || $remote->can_moderate($u))) ? 1 : 0,
+                       ($remote->{'user'} eq $u->{'user'} || $remote->can_manage($u))) ? 1 : 0,
     });
     $comments->{show_postlink} = $entry->posting_comments_allowed;
     $comments->{show_readlink} = $entry->comments_shown && ($replycount || $comments->{'screened'});

Modified: trunk/cgi-bin/LJ/Talk.pm
===================================================================
--- trunk/cgi-bin/LJ/Talk.pm	2011-01-31 07:28:51 UTC (rev 18145)
+++ trunk/cgi-bin/LJ/Talk.pm	2011-01-31 08:07:41 UTC (rev 18146)
@@ -353,8 +353,6 @@
 }
 
 sub can_unscreen {
-warn "Unscreen: " . $_[0]->{user};
-warn "CAN" if $_[0]->can_moderate($_[1]);
     return 0 if $_[0]->can_moderate($_[1]);
     return LJ::Talk::can_screen(@_);
 }
@@ -1140,8 +1138,7 @@
                     $post->{'state'} eq "S" && ! ($remote && ($remote->{'userid'} == $u->{'userid'} ||
                                                               $remote->{'userid'} == $uposterid ||
                                                               $remote->{'userid'} == $post->{'posterid'} ||
-                                                              $remote->can_manage($u) ||
-                                                              $remote->can_moderate($u) ));
+                                                              $remote->can_manage($u) ));
             }
             $post->{'_show'} = $should_show;
             $post_count += $should_show;

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