about summary refs log tree commit diff
diff options
context:
space:
mode:
authorThibaut Girka <thib@sitedethib.com>2019-06-27 15:48:23 +0200
committerThibaut Girka <thib@sitedethib.com>2019-06-27 15:48:23 +0200
commit6ab7051b48dcb1d45c377a129350db1fdeaf11b8 (patch)
tree13ff1b5ae743f3d147eb58dfa4a790ef1a7c049d
parent4175f131557f3633d38e78692698469c3652e398 (diff)
parenta02f4b7cd47783bb1938e7e7e81e966657b1c5e6 (diff)
Merge branch 'master' into glitch-soc/merge-upstream
-rw-r--r--app/chewy/statuses_index.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/chewy/statuses_index.rb b/app/chewy/statuses_index.rb
index f5983a5a5..b7365d5ca 100644
--- a/app/chewy/statuses_index.rb
+++ b/app/chewy/statuses_index.rb
@@ -51,7 +51,7 @@ class StatusesIndex < Chewy::Index
       field :id, type: 'long'
       field :account_id, type: 'long'
 
-      field :text, type: 'text', value: ->(status) { [status.spoiler_text, Formatter.instance.plaintext(status)].concat(status.media_attachments.map(&:description)).concat(status.preloadable_poll ? status_preloadable_poll.options : []).join("\n\n") } do
+      field :text, type: 'text', value: ->(status) { [status.spoiler_text, Formatter.instance.plaintext(status)].concat(status.media_attachments.map(&:description)).concat(status.preloadable_poll ? status.preloadable_poll.options : []).join("\n\n") } do
         field :stemmed, type: 'text', analyzer: 'content'
       end