]> git.openstreetmap.org Git - rails.git/blobdiff - app/controllers/diary_entries_controller.rb
Merge pull request #4201 from AntonKhorev/issues-limit-settings
[rails.git] / app / controllers / diary_entries_controller.rb
index 5b522988d2de1362a06bc10e51d8819fa717be44..a1cd6ab0ed2d9023a4f3a0e4f0da64ea4cd95d8f 100644 (file)
@@ -238,7 +238,7 @@ class DiaryEntriesController < ApplicationController
     comments = DiaryComment.where(:users => @user)
     comments = comments.visible unless can? :unhidecomment, DiaryEntry
 
-    @params = params.permit(:display_name)
+    @params = params.permit(:display_name, :before, :after)
 
     @comments, @newer_comments_id, @older_comments_id = get_page_items(comments, [:user])
   end