Commit 88dd46f068137449a40f8125bd3fe1ed08c59cdc
Exists in
theme-brasil-digital-from-staging
and in
9 other branches
Merge branch 'api' into production
Showing
1 changed file
with
1 additions
and
1 deletions
Show diff stats
lib/noosfero/api/v1/articles.rb
| ... | ... | @@ -32,7 +32,7 @@ module Noosfero |
| 32 | 32 | desc "Returns the total followers for the article" |
| 33 | 33 | get ':id/followers' do |
| 34 | 34 | article = find_article(environment.articles, params[:id]) |
| 35 | - total = article.person_followers.size | |
| 35 | + total = article.person_followers.count | |
| 36 | 36 | {:total_followers => total} |
| 37 | 37 | end |
| 38 | 38 | ... | ... |