Fix #4109: Censored images leaked in og:image attribute.

This commit is contained in:
evazion
2019-07-31 21:47:31 -05:00
parent 92504cb8f3
commit efc5487dd6

View File

@@ -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