mirror of
https://github.com/discourse/discourse.git
synced 2025-02-21 01:40:40 +08:00

If raw contains incorrect URL, `prepare_data` returns empty string: https://github.com/discourse/discourse/blob/master/lib/search.rb#L91 Therefore we should not only check if the cooked post is not blank but also if prepared data is not blank.