mirror of
https://github.com/discourse/discourse.git
synced 2025-03-31 13:45:53 +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
|
end
|
||||||
|
|
||||||
def reviewable_counts
|
def reviewable_counts
|
||||||
if @reviewable_counts.blank?
|
if @reviewable_counts.nil?
|
||||||
|
|
||||||
post_ids = @posts.map(&:id)
|
post_ids = @posts.map(&:id)
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user