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

Update ProfileController
pull/904/head
daniel 2019-02-21 23:08:34 -07:00 zatwierdzone przez GitHub
commit b7d49b8e21
Nie znaleziono w bazie danych klucza dla tego podpisu
ID klucza GPG: 4AEE18F83AFDEB23
1 zmienionych plików z 1 dodań i 1 usunięć

Wyświetl plik

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