Deduplicate with local status on Create activity (#4763)

master
unarist 7 years ago committed by Eugen Rochko
parent 921cf3e9c8
commit 8fd8f81ae7
  1. 2
      app/lib/activitypub/activity/create.rb

@ -25,7 +25,7 @@ class ActivityPub::Activity::Create < ActivityPub::Activity
private private
def find_existing_status 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 ||= Status.find_by(uri: @object['_:atomUri']) if @object['_:atomUri'].present?
status status
end end

Loading…
Cancel
Save