]> cat aescling's git repositories - mastodon.git/commitdiff
Fix NameError (#11192)
authormayaeh <mayaeh@marimo-net.org>
Thu, 27 Jun 2019 07:16:55 +0000 (16:16 +0900)
committerEugen Rochko <eugen@zeonfederated.com>
Thu, 27 Jun 2019 07:16:55 +0000 (09:16 +0200)
app/chewy/statuses_index.rb

index f5983a5a5f489d119c373e9c32e814ec2afa633c..b7365d5cacb90bbdc5a7d0280b111d210a058710 100644 (file)
@@ -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