Fix spam-filtered scheduled posts raising an error rather than being silently ignored (#40051)

This commit is contained in:
Shlee authored and GitHub committed 2026-08-05 12:13:01 +00:00
1 parent 89c9fa1c9a
commit adf7229fac
1 file changed
+1 -1
+1 -1
View File
@@ -156,7 +156,7 @@ class PostStatusService < BaseService
raise ActiveRecord::RecordInvalid
end
rescue Antispam::SilentlyDrop
@status = @account.scheduled_status.new(scheduled_status_attributes).tap(&:delete)
@status = @account.scheduled_statuses.new(scheduled_status_attributes).tap(&:delete)
end
def postprocess_status!