]> git.openstreetmap.org Git - rails.git/blobdiff - app/controllers/feeds/changeset_comments_controller.rb
Merge pull request #5124 from tomhughes/turbo-issue-search
[rails.git] / app / controllers / feeds / changeset_comments_controller.rb
index e24b353b89b1bcfb122b18c63946558619352978..c6b35526016e42e3a4e3c0ed32c6192032552659 100644 (file)
@@ -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)