posts/index: update pending BUR notice criteria.

* Only show pending BUR notice on first page.
* Show pending BUR notice for all searches that include a single tag.
This commit is contained in:
evazion
2020-05-04 01:55:45 -05:00
parent 127bd9866d
commit 6937c40747
2 changed files with 3 additions and 3 deletions

View File

@@ -132,8 +132,8 @@ module PostSets
end
def pending_bulk_update_requests
return BulkUpdateRequest.none unless query.is_simple_tag?
@pending_bulk_update_requests ||= BulkUpdateRequest.pending.where_array_includes_any(:tags, query.tags.first.name)
return BulkUpdateRequest.none unless tag.present?
@pending_bulk_update_requests ||= BulkUpdateRequest.pending.where_array_includes_any(:tags, tag.name)
end
end
end