X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/31b2d4510849071c57073216a78f8d4fc5a91282..85e99d3127e5febcf4698c9d2576f653775af787:/app/models/user_sweeper.rb diff --git a/app/models/user_sweeper.rb b/app/models/user_sweeper.rb index d2fd983f7..5286b97b1 100644 --- a/app/models/user_sweeper.rb +++ b/app/models/user_sweeper.rb @@ -22,6 +22,10 @@ private expire_action(:controller => 'diary_entry', :action => 'rss', :language => entry.language_code, :display_name => nil) end + old_record.diary_comments.each do |comment| + expire_action(:controller => 'diary_entry', :action => 'view', :display_name => comment.diary_entry.user.display_name, :id => comment.diary_entry.id) + end + expire_action(:controller => 'diary_entry', :action => 'list', :language => nil, :display_name => nil) expire_action(:controller => 'diary_entry', :action => 'list', :language => nil, :display_name => old_record.display_name)