Commit a66e7f348422d890bdd905170cd9b373665c6f24
1 parent
9cc7056d
Exists in
send_email_to_admins
and in
5 other branches
api: expose published attribute from article
Showing
1 changed file
with
1 additions
and
0 deletions
Show diff stats
lib/noosfero/api/entities.rb
@@ -196,6 +196,7 @@ module Noosfero | @@ -196,6 +196,7 @@ module Noosfero | ||
196 | expose :archived, :documentation => {:type => "Boolean", :desc => "Defines if a article is readonly"} | 196 | expose :archived, :documentation => {:type => "Boolean", :desc => "Defines if a article is readonly"} |
197 | expose :type | 197 | expose :type |
198 | expose :comments, using: CommentBase, :if => lambda{|obj,opt| opt[:params] && ['1','true',true].include?(opt[:params][:show_comments])} | 198 | expose :comments, using: CommentBase, :if => lambda{|obj,opt| opt[:params] && ['1','true',true].include?(opt[:params][:show_comments])} |
199 | + expose :published | ||
199 | end | 200 | end |
200 | 201 | ||
201 | class Article < ArticleBase | 202 | class Article < ArticleBase |