Remove legacy edge case handling in fan out on write service (#39362)

This commit is contained in:
Matt Jankowski authored and GitHub committed 2026-06-22 13:27:15 +00:00
1 parent 174a4b1b38
commit 2982c13c9c
1 file changed
-13
-13
View File
@@ -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!