Commit 1c90626d0df95f0478cf3dec23fb32dbbe5230d6
Committed by
Rodrigo Souto
1 parent
2523891c
Exists in
master
and in
17 other branches
Add attribute admin username in community via api
Showing
1 changed file
with
1 additions
and
1 deletions
Show diff stats
lib/noosfero/api/entities.rb
... | ... | @@ -119,7 +119,7 @@ module Noosfero |
119 | 119 | root 'communities', 'community' |
120 | 120 | expose :description |
121 | 121 | expose :admins do |community, options| |
122 | - community.admins.map{|admin| {"name"=>admin.name, "id"=>admin.id}} | |
122 | + community.admins.map{|admin| {"name"=>admin.name, "id"=>admin.id, "username" => admin.identifier}} | |
123 | 123 | end |
124 | 124 | expose :categories, :using => Category |
125 | 125 | expose :members, :using => Person | ... | ... |
-
mentioned in commit 25bc299bb14ec515107c0fe3aff93047e351d96c