Типа я (zilogic) wrote in changelog,
Типа я
zilogic
changelog

[livejournal] r19320: LJSUP-9091: Sort by poster in friends pa...

Committer: amyshkin
LJSUP-9091: Sort by poster in friends page

U   trunk/cgi-bin/LJ/User.pm
Modified: trunk/cgi-bin/LJ/User.pm
===================================================================
--- trunk/cgi-bin/LJ/User.pm	2011-06-20 03:41:11 UTC (rev 19319)
+++ trunk/cgi-bin/LJ/User.pm	2011-06-20 06:35:31 UTC (rev 19320)
@@ -199,6 +199,9 @@
     $u->set_prop("adult_content", $opts{journal_adult_settings}) if LJ::is_enabled("content_flag");
 
     my $remote = LJ::get_remote();
+
+	die "No remote user!\n" unless $remote;
+
     LJ::set_rel($u, $remote, "A");  # maintainer
 
     LJ::set_rel($u, $remote, "S");  # supermaintainer
@@ -7448,7 +7451,10 @@
     }
     my $extra = join('', @extra);
 
-    $journal = $opts->{in_journal} ? " lj:journal='" . LJ::ehtml($opts->{in_journal}) . "'" : '';
+    if ( exists $opts->{in_journal} && $opts->{in_journal} ) {
+        my $cu = LJ::load_user( $opts->{in_journal} );
+        $journal = $cu ? ' lj:journal="' . $cu->journal_base . '"' : '';
+    }
 
     return
         "<span class='$span_classes' lj:user='$username'$journal style='$span_styles'>" .

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