Fix processing of out-of-order Update as implicit updates (#36190)
This commit is contained in:
parent
0b66bd591f
commit
bef28b2e51
1 changed files with 3 additions and 0 deletions
|
|
@ -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…
Reference in a new issue