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

[livejournal] r19748: LJSUP-9304: fixed urls for identity acco...

Committer: vtroitsky
LJSUP-9304: fixed urls for identity accounts
U   trunk/cgi-bin/ljprotocol.pl
Modified: trunk/cgi-bin/ljprotocol.pl
===================================================================
--- trunk/cgi-bin/ljprotocol.pl	2011-08-17 06:20:03 UTC (rev 19747)
+++ trunk/cgi-bin/ljprotocol.pl	2011-08-17 06:24:37 UTC (rev 19748)
@@ -614,7 +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_url'} = $i->url($item->{upost});
             $item_data->{'identity_display'} = $item->{upost}->display_name;
         }
 
@@ -1027,7 +1027,7 @@
                 my $i = $users->{ $_->{posterid} }->identity;
                 $_->{'identity_type'} = $i->pretty_type;
                 $_->{'identity_value'} = $i->value;
-                $_->{'identity_url'} = $users->{ $_->{posterid} }->url;
+                $_->{'identity_url'} = $i->url($users->{ $_->{posterid} });
                 $_->{'identity_display'} = $users->{ $_->{posterid} }->display_name;
         }
         delete $_->{posterid};
@@ -3207,7 +3207,7 @@
                 my $i = $uposter->identity;
                 $evt->{'identity_type'} = $i->pretty_type;
                 $evt->{'identity_value'} = $i->value;
-                $evt->{'identity_url'} = $uposter->url;
+                $evt->{'identity_url'} = $i->url($uposter);
                 $evt->{'identity_display'} = $uposter->display_name;
             }
         }
@@ -3499,7 +3499,7 @@
                 my $i = $row->identity;
                 $added->{'identity_type'} = $i->pretty_type;
                 $added->{'identity_value'} = $i->value;
-                $added->{'identity_url'} = $row->url;
+                $added->{'identity_url'} = $i->url($row);
                 $added->{'identity_display'} = $row->display_name;
             }
             $added->{"type"} = {
@@ -3860,7 +3860,7 @@
             my $i = $u->identity;
             $r->{'identity_type'} = $i->pretty_type;
             $r->{'identity_value'} = $i->value;
-            $r->{'identity_url'} = $u->url;
+            $r->{'identity_url'} = $i->url($u);
             $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