sunnyman's (sunnyman) wrote in changelog,
sunnyman's
sunnyman
changelog

[livejournal] r19691: LJSUP-9305: identity checking fixed

Committer: vtroitsky
LJSUP-9305: identity checking fixed
U   trunk/cgi-bin/ljprotocol.pl
Modified: trunk/cgi-bin/ljprotocol.pl
===================================================================
--- trunk/cgi-bin/ljprotocol.pl	2011-08-10 10:16:44 UTC (rev 19690)
+++ trunk/cgi-bin/ljprotocol.pl	2011-08-11 03:12:05 UTC (rev 19691)
@@ -1023,7 +1023,6 @@
         $_->{postername} = $users->{ $_->{posterid} }->{'user'};
         $_->{postertype} = $users->{ $_->{posterid} }->{'journaltype'};
         $_->{posterurl}  = $users->{ $_->{posterid} }->journal_base;
-        delete $_->{posterid};
         if ($users->{ $_->{posterid} }->identity) {
                 my $i = $users->{ $_->{posterid} }->identity;
                 $_->{'identity_type'} = $i->pretty_type;
@@ -1031,6 +1030,7 @@
                 $_->{'identity_url'} = $i->url;
                 $_->{'identity_display'} = $users->{ $_->{posterid} }->display_name;
         }
+        delete $_->{posterid};
     }
 
     LJ::run_hooks("getfriendspage", {userid => $u->userid, });

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