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 billymoroney1 committed Dec 28, 2021
1 parent a884318 commit f0ed786
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 f0ed786

Please sign in to comment.