about summary refs log tree commit diff
diff options
context:
space:
mode:
authormultiple creatures <dev@multiple-creature.party>2019-11-18 01:20:48 -0600
committermultiple creatures <dev@multiple-creature.party>2019-11-18 02:19:09 -0600
commit4d6e1aa81de57d5102340b42d267d8fbf0073eec (patch)
treeca0b27038a3fdf08ebbbdc829d958bf48451784f
parent20f5ced61d0afb90a224b811be52de589e06a727 (diff)
Include media attachment descriptions in normalized text.
-rw-r--r--app/helpers/text_helper.rb2
1 files changed, 1 insertions, 1 deletions
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