Commit 30c569f6fae59e36065e7119b982ef28ea6c7e69
1 parent
9a7a82c2
Exists in
theme-brasil-digital-from-staging
and in
9 other branches
Fix followers count
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 | ... | ... |