mirror of
https://github.com/discourse/discourse.git
synced 2025-03-25 01:35:36 +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.