1
0
Fork 1
mirror of https://github.com/pixelfed/pixelfed.git synced 2024-12-26 01:36:43 +00:00

Update StatusController

This commit is contained in:
Daniel Supernault 2018-12-31 23:02:23 -07:00
parent 2ed9de6912
commit 35e0140e87
No known key found for this signature in database
GPG key ID: 0DEF1C662C9033F7

View file

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