[Git][noosfero/noosfero][master] 2 commits: api: add closed attribute to community entity

Victor Costa gitlab at mg.gitlab.com
Wed Apr 12 12:11:32 BRT 2017


Victor Costa pushed to branch master at Noosfero / noosfero


Commits:
346e774f by Josafá Souza Jr at 2017-04-12T09:31:26-03:00
api: add closed attribute to community entity

- - - - -
e3cef2d4 by Victor Costa at 2017-04-12T15:11:12+00:00
Merge branch 'api-update-community-info' into 'master'

api: add closed attribute to community entity

See merge request !1162
- - - - -


1 changed file:

- app/api/entities.rb


Changes:

=====================================
app/api/entities.rb
=====================================
--- a/app/api/entities.rb
+++ b/app/api/entities.rb
@@ -178,7 +178,7 @@ module Api
         community.admins.map{|admin| {"name"=>admin.name, "id"=>admin.id, "username" => admin.identifier}}
       end
       expose :categories, :using => Category
-      expose :members_count
+      expose :members_count, :closed
       expose :members, :if => lambda {|community, options| Entities.expose_optional_field?(:members, options)}
     end
 



View it on GitLab: https://gitlab.com/noosfero/noosfero/compare/bcd40571b4101e2374bc0f16cb8ba9b68324b8c2...e3cef2d42e7661ca8d306f7574972427eef5364e
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://listas.softwarelivre.org/pipermail/noosfero-dev/attachments/20170412/69f94441/attachment.html>


More information about the Noosfero-dev mailing list