Fix Style/InverseMethods cop (#28377)
				
					
				
			This commit is contained in:
		@@ -91,7 +91,7 @@ class CustomFilter < ApplicationRecord
 | 
			
		||||
      filters_hash.values.map { |cache| [cache.delete(:filter), cache] }
 | 
			
		||||
    end.to_a
 | 
			
		||||
 | 
			
		||||
    active_filters.select { |custom_filter, _| !custom_filter.expired? }
 | 
			
		||||
    active_filters.reject { |custom_filter, _| custom_filter.expired? }
 | 
			
		||||
  end
 | 
			
		||||
 | 
			
		||||
  def self.apply_cached_filters(cached_filters, status)
 | 
			
		||||
 
 | 
			
		||||
@@ -21,7 +21,7 @@ class UpdateAccountService < BaseService
 | 
			
		||||
 | 
			
		||||
  def authorize_all_follow_requests(account)
 | 
			
		||||
    follow_requests = FollowRequest.where(target_account: account)
 | 
			
		||||
    follow_requests = follow_requests.preload(:account).select { |req| !req.account.silenced? }
 | 
			
		||||
    follow_requests = follow_requests.preload(:account).reject { |req| req.account.silenced? }
 | 
			
		||||
    AuthorizeFollowWorker.push_bulk(follow_requests, limit: 1_000) do |req|
 | 
			
		||||
      [req.account_id, req.target_account_id]
 | 
			
		||||
    end
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user