mirror of
https://git.bsd.gay/fef/nyastodon.git
synced 2024-12-24 03:43:42 +01:00
Deduplicate with local status on Create activity (#4763)
This commit is contained in:
parent
921cf3e9c8
commit
8fd8f81ae7
1 changed files with 1 additions and 1 deletions
|
@ -25,7 +25,7 @@ class ActivityPub::Activity::Create < ActivityPub::Activity
|
|||
private
|
||||
|
||||
def find_existing_status
|
||||
status = Status.find_by(uri: object_uri)
|
||||
status = status_from_uri(object_uri)
|
||||
status ||= Status.find_by(uri: @object['_:atomUri']) if @object['_:atomUri'].present?
|
||||
status
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue