Commit 25bc299bb14ec515107c0fe3aff93047e351d96c
1 parent
80fe18a6
Exists in
stable-spb-1.4
and in
5 other branches
Add attribute admin username in community via api
(cherry picked from commit 1c90626d0df95f0478cf3dec23fb32dbbe5230d6)
Showing
1 changed file
with
1 additions
and
1 deletions
Show diff stats
lib/noosfero/api/entities.rb
@@ -106,7 +106,7 @@ module Noosfero | @@ -106,7 +106,7 @@ module Noosfero | ||
106 | root 'communities', 'community' | 106 | root 'communities', 'community' |
107 | expose :description | 107 | expose :description |
108 | expose :admins do |community, options| | 108 | expose :admins do |community, options| |
109 | - community.admins.map{|admin| {"name"=>admin.name, "id"=>admin.id, "id"=>admin.identifier}} | 109 | + community.admins.map{|admin| {"name"=>admin.name, "id"=>admin.id, "username" => admin.identifier}} |
110 | end | 110 | end |
111 | expose :categories, :using => Category | 111 | expose :categories, :using => Category |
112 | expose :members, :using => Person | 112 | expose :members, :using => Person |