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

[livejournal] r19702: LJSUP-9304: identity_url attribute retur...

Committer: vtroitsky
LJSUP-9304: identity_url attribute returned for identity users
U   trunk/cgi-bin/ljprotocol.pl
Modified: trunk/cgi-bin/ljprotocol.pl
===================================================================
--- trunk/cgi-bin/ljprotocol.pl	2011-08-11 09:29:04 UTC (rev 19701)
+++ trunk/cgi-bin/ljprotocol.pl	2011-08-11 10:04:55 UTC (rev 19702)
@@ -614,6 +614,7 @@
             my $i = $item->{upost}->identity;
             $item_data->{'identity_type'} = $i->pretty_type;
             $item_data->{'identity_value'} = $i->value;
+            $item_data->{'identity_url'} = $item->{upost}->url;
             $item_data->{'identity_display'} = $item->{upost}->display_name;
         }
 
@@ -1026,6 +1027,7 @@
                 my $i = $users->{ $_->{posterid} }->identity;
                 $_->{'identity_type'} = $i->pretty_type;
                 $_->{'identity_value'} = $i->value;
+                $_->{'identity_url'} = $users->{ $_->{posterid} }->url;
                 $_->{'identity_display'} = $users->{ $_->{posterid} }->display_name;
         }
         delete $_->{posterid};
@@ -3205,6 +3207,7 @@
                 my $i = $uposter->identity;
                 $evt->{'identity_type'} = $i->pretty_type;
                 $evt->{'identity_value'} = $i->value;
+                $evt->{'identity_url'} = $uposter->url;
                 $evt->{'identity_display'} = $uposter->display_name;
             }
         }
@@ -3496,6 +3499,7 @@
                 my $i = $row->identity;
                 $added->{'identity_type'} = $i->pretty_type;
                 $added->{'identity_value'} = $i->value;
+                $added->{'identity_url'} = $row->url;
                 $added->{'identity_display'} = $row->display_name;
             }
             $added->{"type"} = {
@@ -3856,6 +3860,7 @@
             my $i = $u->identity;
             $r->{'identity_type'} = $i->pretty_type;
             $r->{'identity_value'} = $i->value;
+            $r->{'identity_url'} = $u->url;
             $r->{'identity_display'} = $u->display_name;
         }
 

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