Remove searchability filter in antenna
This commit is contained in:
parent
e45b78c10e
commit
bb7fa1d060
2 changed files with 1 additions and 2 deletions
|
@ -131,7 +131,6 @@ class FanOutOnWriteService < BaseService
|
|||
antennas.in_batches do |ans|
|
||||
ans.each do |antenna|
|
||||
next if !antenna.enabled?
|
||||
next if antenna.keywords.any? && !([nil, :public].include?(@status.searchability&.to_sym))
|
||||
next if antenna.keywords.any? && !antenna.keywords.any? { |keyword| @status.text.include?(keyword) }
|
||||
next if antenna.exclude_keywords&.any? { |keyword| @status.text.include?(keyword) }
|
||||
next if antenna.exclude_accounts&.include?(@status.account_id)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue