changelog_bot (changelog_bot) wrote in changelog,
changelog_bot
changelog_bot
changelog

[livejournal] r16331: LJSUP-5536

Committer: aurbanowich
LJSUP-5536

U   trunk/cgi-bin/ljprotocol.pl
Modified: trunk/cgi-bin/ljprotocol.pl
===================================================================
--- trunk/cgi-bin/ljprotocol.pl	2010-03-04 09:19:11 UTC (rev 16330)
+++ trunk/cgi-bin/ljprotocol.pl	2010-03-04 09:24:09 UTC (rev 16331)
@@ -2653,6 +2653,8 @@
             $friends_added++;
             my $added = { 'username' => $aname,
                           'fullname' => $row->{'name'},
+                          'journaltype' => $row->{journaltype},
+                          'defaultpicurl' => ($row->{'defaultpicid'} && "$LJ::USERPIC_ROOT/$row->{'defaultpicid'}/$row->{'userid'}"),
                       };
             if ($req->{'ver'} >= 1) {
                 LJ::text_out(\$added->{'fullname'});
@@ -3019,7 +3021,9 @@
             'S' => "suspended",
             'X' => "purged",
         }->{$u->{'statusvis'}} if $u->{'statusvis'} ne 'V';
-
+        
+        $r->{defaultpicurl} = "$LJ::USERPIC_ROOT/$u->{'defaultpicid'}/$u->{'userid'}" if $u->{'defaultpicid'};
+        
         push @$res, $r;
         # won't happen for zero limit (which means no limit)
         last if @$res == $limitnum;

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