From 4c0dbcadfe7e769e4a624aac0b2f72e9e482022b Mon Sep 17 00:00:00 2001 From: unarist Date: Sat, 2 Sep 2017 04:00:43 +0900 Subject: [PATCH] Deduplicate with local status on Create activity (#4763) --- app/lib/activitypub/activity/create.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/lib/activitypub/activity/create.rb b/app/lib/activitypub/activity/create.rb index 2eea1827a7..a6f1e60d93 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