Update AP Helpers

This commit is contained in:
Daniel Supernault 2019-07-24 19:25:26 -06:00
parent f5701e8714
commit 5f03dfa05b
No known key found for this signature in database
GPG key ID: 0DEF1C662C9033F7

View file

@ -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) {