Merge pull request #864 from pixelfed/frontend-ui-refactor

Update ProfileController
This commit is contained in:
daniel 2019-02-21 23:08:34 -07:00 committed by GitHub
commit b7d49b8e21
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -19,7 +19,7 @@ class ProfileController extends Controller
{
public function show(Request $request, $username)
{
$user = Profile::whereUsername($username)->firstOrFail();
$user = Profile::whereNull('domain')->whereUsername($username)->firstOrFail();
if($user->status != null) {
return $this->accountCheck($user);
} else {