diff --git a/app/lib/sorting_query_builder.rb b/app/lib/sorting_query_builder.rb index b4a1ae4d..2cd99c28 100644 --- a/app/lib/sorting_query_builder.rb +++ b/app/lib/sorting_query_builder.rb @@ -111,8 +111,6 @@ class SortingQueryBuilder < BaseService query = query.where('status_stats.replies_count > ?', min_replies) unless sort_type == 'recent' query = query.where('status_stats.reblogs_count > ?', min_reblogs) unless sort_type == 'recent' query = query.where('status_stats.favourites_count > ?', min_likes) unless sort_type == 'recent' - query = query.joins(:account) - query = query.where('accounts.is_flagged_as_spam is false') query = query.joins(:status) query = query.where('statuses.reblog_of_id IS NULL') query = query.where('statuses.in_reply_to_id IS NULL')