diff options
author | unarist <m.unarist@gmail.com> | 2017-09-02 04:00:43 +0900 |
---|---|---|
committer | Eugen Rochko <eugen@zeonfederated.com> | 2017-09-01 21:00:43 +0200 |
commit | 8fd8f81ae7ab7c02c4cb75c3c65ff3ed8c193f38 (patch) | |
tree | 17eeb0720834c98935797bd4bff7c470f3d6c83b | |
parent | 921cf3e9c8087ce0cd9923f40a8f9b565d07a146 (diff) |
Deduplicate with local status on Create activity (#4763)
-rw-r--r-- | app/lib/activitypub/activity/create.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/lib/activitypub/activity/create.rb b/app/lib/activitypub/activity/create.rb index 2eea1827a..a6f1e60d9 100644 --- a/app/lib/activitypub/activity/create.rb +++ b/app/lib/activitypub/activity/create.rb @@ -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 |