Skip to content

Commit

Permalink
Exclude reblog from ltl antenna
Browse files Browse the repository at this point in the history
  • Loading branch information
kmycode committed Sep 11, 2023
1 parent af44c20 commit 0553131
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions app/services/delivery_antenna_service.rb
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,7 @@ def delivery_stl!
def delivery_ltl!
return if %i(public public_unlisted login).exclude?(@status.visibility.to_sym)
return unless @account.local?
return if @status.reblog?

antennas = Antenna.available_ltls
antennas = antennas.where(account_id: Account.without_suspended.joins(:user).select('accounts.id').where('users.current_sign_in_at > ?', User::ACTIVE_DURATION.ago))
Expand Down

0 comments on commit 0553131

Please sign in to comment.