Some changes to the edges JSON format: use the actual username, not 
display name.  Also include some other information on the user we're getting 
edges for.

        Patch by foxfirefey. 

diffs (22 lines):

diff -r 071911b94cfc -r 0073e01d76e8 htdocs/data/edges.bml
--- a/htdocs/data/edges.bml     Wed Oct 21 18:41:39 2009 +0000
+++ b/htdocs/data/edges.bml     Wed Oct 21 19:07:36 2009 +0000
@@ -64,6 +64,9 @@
     my $response = {};
 
     # all accounts have this
+    $response->{account_id} = $u->userid;
+    $response->{name} = $u->user;
+    $response->{display_name} = $u->display_name if $u->is_identity;
     $response->{account_type} = $u->journaltype;
     $response->{watched_by} = [ $u->watched_by_userids ];
 
@@ -81,7 +84,7 @@
 
     # now dump information about the users we loaded
     $response->{accounts} = {
-        map { $_ => { name => $us->{$_}->display_name, type => 
$us->{$_}->journaltype } } keys %$us
+        map { $_ => { name => $us->{$_}->user, type => $us->{$_}->journaltype 
} } keys %$us
     };
 
     # Output to BML
_______________________________________________
dw-changelog mailing list
[email protected]
http://lists.dwscoalition.org/mailman/listinfo/dw-changelog

Reply via email to