mirror of
https://github.com/discourse/discourse.git
synced 2025-04-15 21:50:55 +08:00

This is a follow-up of d749227e87bfc5df96a5b2fbace7601a83351633. This patch checks if the key `not_found` is present on the result object instead of calling `#blank?` on the model, as it can trigger an `ActiveRecord` relation.