From 5f03dfa05baab283aeadd44e645bee5b60ae37d3 Mon Sep 17 00:00:00 2001 From: Daniel Supernault Date: Wed, 24 Jul 2019 19:25:26 -0600 Subject: [PATCH] Update AP Helpers --- app/Util/ActivityPub/Helpers.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/app/Util/ActivityPub/Helpers.php b/app/Util/ActivityPub/Helpers.php index e9ea90e91..e0fb72995 100644 --- a/app/Util/ActivityPub/Helpers.php +++ b/app/Util/ActivityPub/Helpers.php @@ -388,7 +388,10 @@ class Helpers { if($local == true) { $id = last(explode('/', $url)); - return Profile::whereUsername($id)->firstOrFail(); + return Profile::whereNull('status') + ->whereNull('domain') + ->whereUsername($id) + ->firstOrFail(); } $res = self::fetchProfileFromUrl($url); if(isset($res['id']) == false) {