From 4d6e1aa81de57d5102340b42d267d8fbf0073eec Mon Sep 17 00:00:00 2001 From: multiple creatures Date: Mon, 18 Nov 2019 01:20:48 -0600 Subject: Include media attachment descriptions in normalized text. --- app/helpers/text_helper.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'app/helpers') diff --git a/app/helpers/text_helper.rb b/app/helpers/text_helper.rb index a0133be53..5244fee8d 100644 --- a/app/helpers/text_helper.rb +++ b/app/helpers/text_helper.rb @@ -33,6 +33,6 @@ module TextHelper end def normalize_status(status) - normalize_text("#{status.tags.pluck(:name).join(' ')}\n#{status.spoiler_text}\n#{status.local? ? Formatter.instance.format(status, skip_cache: true, cache: false) : status.text}") + normalize_text("#{status.tags.pluck(:name).join(' ')}\n#{status.spoiler_text}\n#{status.local? ? Formatter.instance.format(status, skip_cache: true, cache: false) : status.text}\n#{status.media_attachments.pluck(:description).join("\n")}") end end -- cgit