Fix processing of out-of-order Update as implicit updates (#36190)

This commit is contained in:
Claire 2025-09-19 11:52:17 +02:00
parent 444cf4cc40
commit 5d947704d9

View File

@ -23,6 +23,9 @@ class ActivityPub::ProcessStatusUpdateService < BaseService
if @status_parser.edited_at.present? && (@status.edited_at.nil? || @status_parser.edited_at > @status.edited_at)
handle_explicit_update!
elsif @status.edited_at.present? && (@status_parser.edited_at.nil? || @status_parser.edited_at < @status.edited_at)
# This is an older update, reject it
return @status
else
handle_implicit_update!
end