From 823ed7ad15380ea194cacc9d1dc6cb2a088dc4ed Mon Sep 17 00:00:00 2001 From: Jeong Arm Date: Mon, 27 May 2024 22:41:33 +0900 Subject: [PATCH] Fix ruby lint --- app/chewy/statuses_index.rb | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/app/chewy/statuses_index.rb b/app/chewy/statuses_index.rb index 05eb0a9aa6d..50d979e24a1 100644 --- a/app/chewy/statuses_index.rb +++ b/app/chewy/statuses_index.rb @@ -52,7 +52,9 @@ class StatusesIndex < Chewy::Index }, } - index_scope ::Status.unscoped.kept.without_reblogs.includes(:media_attachments, :local_mentioned, :local_favorited, :local_reblogged, :local_bookmarked, :local_replied, :tags, preview_cards_status: :preview_card, preloadable_poll: :local_voters), delete_if: ->(status) { status.searchable_by.empty? } + index_scope ::Status.unscoped.kept.without_reblogs.includes( + :media_attachments, :local_mentioned, :local_favorited, :local_reblogged, :local_bookmarked, :local_replied, :tags, preview_cards_status: :preview_card, preloadable_poll: :local_voters + ), delete_if: ->(status) { status.searchable_by.empty? } root date_detection: false do field(:id, type: 'long')