DEV: Update to lastest rubocop-discourse

This commit is contained in:
Loïc Guitaut
2024-05-27 12:27:13 +02:00
committed by Loïc Guitaut
parent 3b6d4c830f
commit 2a28cda15c
164 changed files with 269 additions and 263 deletions

View File

@@ -315,7 +315,7 @@ class TopicEmbed < ActiveRecord::Base
return result if result.size >= 100
end
end
return result unless result.blank?
return result if result.present?
# If there is no first paragraph, return the first div (onebox)
doc.css("div").first.to_s