Update RelationshipSettings Controller, fixes #1605

This commit is contained in:
Daniel Supernault 2020-01-27 21:13:53 -07:00
parent b8e7ac270e
commit 4d2da2f1b0
No known key found for this signature in database
GPG Key ID: 0DEF1C662C9033F7
1 changed files with 1 additions and 5 deletions

View File

@ -22,7 +22,7 @@ trait RelationshipSettings
'mode' => 'nullable|string|in:following,followers,hashtags'
]);
$mode = $request->input('mode');
$mode = $request->input('mode') ?? 'followers';
$profile = Auth::user()->profile;
switch ($mode) {
@ -37,10 +37,6 @@ trait RelationshipSettings
case 'hashtags':
$data = $profile->hashtagFollowing()->with('hashtag')->simplePaginate(10);
break;
default:
$data = [];
break;
}
return view('settings.relationships.home', compact('profile', 'mode', 'data'));