Commit 30c569f6fae59e36065e7119b982ef28ea6c7e69

Authored by Victor Costa
1 parent 9a7a82c2

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,7 +32,7 @@ module Noosfero
32 desc "Returns the total followers for the article" 32 desc "Returns the total followers for the article"
33 get ':id/followers' do 33 get ':id/followers' do
34 article = find_article(environment.articles, params[:id]) 34 article = find_article(environment.articles, params[:id])
35 - total = article.person_followers.size 35 + total = article.person_followers.count
36 {:total_followers => total} 36 {:total_followers => total}
37 end 37 end
38 38