Андрей (andy) wrote in changelog,
Андрей
andy
changelog

[ljcom] r13094: LJSUP-14712 (Empty space at friends page...

Committer: ailyin
LJSUP-14712 (Empty space at friends page of community)
U   trunk/cgi-bin/LJ/Hooks/ControlStrip.pm
Modified: trunk/cgi-bin/LJ/Hooks/ControlStrip.pm
===================================================================
--- trunk/cgi-bin/LJ/Hooks/ControlStrip.pm	2013-01-10 13:02:18 UTC (rev 13093)
+++ trunk/cgi-bin/LJ/Hooks/ControlStrip.pm	2013-01-10 15:00:21 UTC (rev 13094)
@@ -122,9 +122,18 @@
 
     LJ::need_res(qw(stc/controlstrip-new.css));
 
-    if ((LJ::Request->notes('view') || '') eq 'friends') {
-        LJ::need_res(qw(stc/friendsfeed-msg.css stc/friendsfeed-indent.css))
-            if $remote && $remote->prop ('closed_feed_line') ne $LJ::CURRENT_VERSION;
+    my $page_view = LJ::Request->notes('view') || '';
+    my $remote_prop_closed_feed_line = $remote ?
+        $remote->prop('closed_feed_line') : '';
+    $remote_prop_closed_feed_line ||= '';
+    my $remote_closed_friendsfeed_message =
+        $remote_prop_closed_feed_line ne $LJ::CURRENT_VERSION;
+
+    if ( $page_view eq 'friends' && $remote && LJ::u_equals( $u, $remote ) &&
+        ! $remote_closed_friendsfeed_message )
+    {
+        LJ::need_res(
+            qw( stc/friendsfeed-msg.css stc/friendsfeed-indent.css ) );
     }
 
     my $color;

Tags: ailyin, andy, ljcom, 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