mirror of
https://github.com/discourse/discourse.git
synced 2025-03-24 14:05:35 +08:00
PERF: fix N+A+lot query
reviewable_counts could be `{}` which is technically blank. We wanted to check for nil here
This commit is contained in:
parent
19edc4abb8
commit
1d76b7b7b5
@ -419,7 +419,7 @@ class TopicView
|
||||
end
|
||||
|
||||
def reviewable_counts
|
||||
if @reviewable_counts.blank?
|
||||
if @reviewable_counts.nil?
|
||||
|
||||
post_ids = @posts.map(&:id)
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user