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

pull/36192/head
Claire 2 months ago committed by GitHub
parent b6bc42aaa6
commit a0a56a4c7b
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -25,6 +25,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

Loading…
Cancel
Save