mirror of
https://github.com/mastodon/mastodon.git
synced 2025-11-29 19:03:41 +00:00
Fix processing of out-of-order Update as implicit updates (#36190)
This commit is contained in:
parent
444cf4cc40
commit
5d947704d9
|
|
@ -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)
|
if @status_parser.edited_at.present? && (@status.edited_at.nil? || @status_parser.edited_at > @status.edited_at)
|
||||||
handle_explicit_update!
|
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
|
else
|
||||||
handle_implicit_update!
|
handle_implicit_update!
|
||||||
end
|
end
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user