mirror of
https://github.com/pixelfed/pixelfed.git
synced 2024-11-22 14:31:26 +00:00
Update AP Helpers
This commit is contained in:
parent
f5701e8714
commit
5f03dfa05b
1 changed files with 4 additions and 1 deletions
|
@ -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) {
|
||||
|
|
Loading…
Reference in a new issue