X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/09d5ae68ddae20abc653d0d6b2cf3ef9dc12da2e..5f2a5cadcb693b34b81a9232b8879c3b4f12843d:/app/controllers/feeds/changeset_comments_controller.rb?ds=sidebyside diff --git a/app/controllers/feeds/changeset_comments_controller.rb b/app/controllers/feeds/changeset_comments_controller.rb index e24b353b8..c6b355260 100644 --- a/app/controllers/feeds/changeset_comments_controller.rb +++ b/app/controllers/feeds/changeset_comments_controller.rb @@ -11,12 +11,12 @@ module Feeds ## # Get a feed of recent changeset comments def index - if params[:id] + if params[:changeset_id] # Extract the arguments - id = params[:id].to_i + changeset_id = params[:changeset_id].to_i # Find the changeset - changeset = Changeset.find(id) + changeset = Changeset.find(changeset_id) # Return comments for this changeset only @comments = changeset.comments.includes(:author, :changeset).reverse_order.limit(comments_limit)