diff --git a/app/helpers/admin/trends/statuses_helper.rb b/app/helpers/admin/trends/statuses_helper.rb index 96b578f29e7001..2a48aa39f5e61e 100644 --- a/app/helpers/admin/trends/statuses_helper.rb +++ b/app/helpers/admin/trends/statuses_helper.rb @@ -19,7 +19,7 @@ def multi_line_preview(status) text = if status.local? status.text.split("\n") else - Nokogiri::HTML(status.text).css('html > body > *').text + Nokogiri::HTML(status.text).css('html > body > *').first&.text end return '' if text.blank?