Fix self unlisted posts are not picked by stl antennas
This commit is contained in:
parent
ed8f7d3572
commit
a9fef4a8cf
1 changed files with 1 additions and 1 deletions
|
@ -121,7 +121,7 @@ class FanOutOnWriteService < BaseService
|
|||
antennas = Antenna.available_stls
|
||||
antennas = antennas.where(account_id: Account.without_suspended.joins(:user).select('accounts.id').where('users.current_sign_in_at > ?', User::ACTIVE_DURATION.ago))
|
||||
|
||||
antennas = antennas.where(account: @account.followers).where.not(list_id: 0) if !@account.domain.nil? || [:public, :public_unlisted].exclude?(@status.visibility.to_sym)
|
||||
antennas = antennas.where(account: @account.followers).or(antennas.where(account: @account)).where.not(list_id: 0) if !@account.domain.nil? || [:public, :public_unlisted].exclude?(@status.visibility.to_sym)
|
||||
|
||||
collection = AntennaCollection.new(@status, @options[:update])
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue