diff --git a/app/controllers/home_controller.rb b/app/controllers/home_controller.rb index 3961cd8cdd..997d175229 100644 --- a/app/controllers/home_controller.rb +++ b/app/controllers/home_controller.rb @@ -127,7 +127,7 @@ def activity revisions = revisions.to_a # ensure it can be serialized for caching wikis += revisions wikis = wikis.sort_by(&:created_at).reverse - comments = Comment.joins(:node, :drupal_user) + comments = Comment.where(status: 1).joins(:node, :drupal_user) .order('timestamp DESC') .where('timestamp - node.created > ?', 86_400) # don't report edits within 1 day of page creation .where('node.status = ?', 1)