Skip to content

Commit

Permalink
Update like_controller.rb (publiclab#8365)
Browse files Browse the repository at this point in the history
  • Loading branch information
ACavoli authored and alvesitalo committed Oct 14, 2020
1 parent bdb753d commit 50fd532
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/controllers/like_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ def index
# return a count of likes for a given node
# This does not support non-nodes very well
def show
render json: Node.find(params[:id]).likers.count
render json: Node.find(params[:id]).likers.size
end

# for the current user, return whether is presently liked or not
Expand Down

0 comments on commit 50fd532

Please sign in to comment.