diff --git a/app/logical/post_sets/post.rb b/app/logical/post_sets/post.rb index ece388494..6e8c75193 100644 --- a/app/logical/post_sets/post.rb +++ b/app/logical/post_sets/post.rb @@ -191,7 +191,7 @@ module PostSets def best_post # be smarter about this in the future - posts.max {|a, b| a.fav_count <=> b.fav_count} + posts.reject(&:is_deleted).select(&:visible?).max_by(&:fav_count) end end end