mirror of
https://github.com/pixelfed/pixelfed.git
synced 2025-01-31 03:13:04 +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) {
|
if($local == true) {
|
||||||
$id = last(explode('/', $url));
|
$id = last(explode('/', $url));
|
||||||
return Profile::whereUsername($id)->firstOrFail();
|
return Profile::whereNull('status')
|
||||||
|
->whereNull('domain')
|
||||||
|
->whereUsername($id)
|
||||||
|
->firstOrFail();
|
||||||
}
|
}
|
||||||
$res = self::fetchProfileFromUrl($url);
|
$res = self::fetchProfileFromUrl($url);
|
||||||
if(isset($res['id']) == false) {
|
if(isset($res['id']) == false) {
|
||||||
|
|
Loading…
Reference in a new issue