Skip to content
Snippets Groups Projects
Commit 8fd8f81a authored by unarist's avatar unarist Committed by Eugen Rochko
Browse files

Deduplicate with local status on Create activity (#4763)

parent 921cf3e9
No related branches found
No related tags found
No related merge requests found
......@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment