mirror of
https://github.com/pixelfed/pixelfed.git
synced 2024-11-25 15:55:22 +00:00
Update ProfileController
This commit is contained in:
parent
a40021f55e
commit
93cf351168
1 changed files with 4 additions and 9 deletions
|
@ -19,7 +19,10 @@ class ProfileController extends Controller
|
||||||
{
|
{
|
||||||
public function show(Request $request, $username)
|
public function show(Request $request, $username)
|
||||||
{
|
{
|
||||||
$user = Profile::whereNull('domain')->whereUsername($username)->firstOrFail();
|
$user = Profile::whereUsername($username)->firstOrFail();
|
||||||
|
if($user->domain) {
|
||||||
|
return redirect($user->remote_url);
|
||||||
|
}
|
||||||
if($user->status != null) {
|
if($user->status != null) {
|
||||||
return $this->accountCheck($user);
|
return $this->accountCheck($user);
|
||||||
} else {
|
} else {
|
||||||
|
@ -252,12 +255,4 @@ class ProfileController extends Controller
|
||||||
return view('profile.bookmarks', compact('user', 'profile', 'settings', 'owner', 'following', 'timeline', 'is_following', 'is_admin'));
|
return view('profile.bookmarks', compact('user', 'profile', 'settings', 'owner', 'following', 'timeline', 'is_following', 'is_admin'));
|
||||||
}
|
}
|
||||||
|
|
||||||
public function createCollection(Request $request)
|
|
||||||
{
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
public function collections(Request $request)
|
|
||||||
{
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue