From 2982c13c9c5c57e9e144e45fa1ab751160ff9828 Mon Sep 17 00:00:00 2001 From: Matt Jankowski Date: Mon, 22 Jun 2026 09:27:15 -0400 Subject: [PATCH] Remove legacy edge case handling in fan out on write service (#39362) --- app/services/fan_out_on_write_service.rb | 13 ------------- 1 file changed, 13 deletions(-) diff --git a/app/services/fan_out_on_write_service.rb b/app/services/fan_out_on_write_service.rb index d97e3e0fb2..072dcbf748 100644 --- a/app/services/fan_out_on_write_service.rb +++ b/app/services/fan_out_on_write_service.rb @@ -16,7 +16,6 @@ class FanOutOnWriteService < BaseService return if @status.proper.account.suspended? - check_race_condition! warm_payload_cache! fan_out_to_local_recipients! @@ -26,18 +25,6 @@ class FanOutOnWriteService < BaseService private - def check_race_condition! - # I don't know why but at some point we had an issue where - # this service was being executed with status objects - # that had a null visibility - which should not be possible - # since the column in the database is not nullable. - # - # This check re-queues the service to be run at a later time - # with the full object, if something like it occurs - - raise Mastodon::RaceConditionError if @status.visibility.nil? - end - def fan_out_to_local_recipients! deliver_to_self!