X-Git-Url: https://git.openstreetmap.org/rails.git/blobdiff_plain/58559d50daf613cbe9bb04db9d77625d59b7205e..ada8b184ea9820b6bfa8926e97e809d4a9a5c44d:/app/controllers/diary_entry_controller.rb diff --git a/app/controllers/diary_entry_controller.rb b/app/controllers/diary_entry_controller.rb index c45d369ac..68d3a81ee 100644 --- a/app/controllers/diary_entry_controller.rb +++ b/app/controllers/diary_entry_controller.rb @@ -188,7 +188,10 @@ class DiaryEntryController < ApplicationController def comments @comment_pages, @comments = paginate(:diary_comments, - :conditions => { :user_id => @this_user }, + :conditions => { + :user_id => @this_user, + :visible => true + }, :order => 'created_at DESC', :per_page => 20) @page = (params[:page] || 1).to_i