From 6e4a56236e60848d2fc11a25443084d200848a82 Mon Sep 17 00:00:00 2001 From: Daniel Supernault Date: Fri, 6 Sep 2019 22:00:24 -0600 Subject: [PATCH] Update AP Inbox, fix url bug --- app/Util/ActivityPub/Inbox.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/Util/ActivityPub/Inbox.php b/app/Util/ActivityPub/Inbox.php index 5255bd757..1fc29e25e 100644 --- a/app/Util/ActivityPub/Inbox.php +++ b/app/Util/ActivityPub/Inbox.php @@ -130,7 +130,7 @@ class Inbox } $inReplyTo = $activity['inReplyTo']; - $url = $activity['id']; + $url = isset($activity['url']) ? $activity['url'] : $activity['id']; Helpers::statusFirstOrFetch($url, true); return; @@ -148,7 +148,7 @@ class Inbox return; } - $url = $activity['id']; + $url = isset($activity['url']) ? $activity['url'] : $activity['id']; if(Status::whereUrl($url)->exists()) { return; }