diff --git a/app/views/articles/_sticky_nav.html.erb b/app/views/articles/_sticky_nav.html.erb index 7089c282b..908635b16 100644 --- a/app/views/articles/_sticky_nav.html.erb +++ b/app/views/articles/_sticky_nav.html.erb @@ -42,6 +42,7 @@ includes(:user). where("positive_reactions_count > ? OR comments_count > ?", (Rails.env.production? ? 20 : -1 ), (Rails.env.production? ? 8 : -1 )). where(published: true). + where.not(id: @article.id). where("featured_number > ?", 5.days.ago.to_i). order("RANDOM()"). limit(8).