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 | 106 | root 'communities', 'community' |
107 | 107 | expose :description |
108 | 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 | 110 | end |
111 | 111 | expose :categories, :using => Category |
112 | 112 | expose :members, :using => Person | ... | ... |