From 055313116d750766c6be79fc55414962e2ba234f Mon Sep 17 00:00:00 2001 From: KMY Date: Mon, 11 Sep 2023 17:20:19 +0900 Subject: [PATCH] Exclude reblog from ltl antenna --- app/services/delivery_antenna_service.rb | 1 + 1 file changed, 1 insertion(+) diff --git a/app/services/delivery_antenna_service.rb b/app/services/delivery_antenna_service.rb index 7381c36b7139be..5443c22bdbf58a 100644 --- a/app/services/delivery_antenna_service.rb +++ b/app/services/delivery_antenna_service.rb @@ -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))