diff --git a/app/Http/Controllers/Settings/RelationshipSettings.php b/app/Http/Controllers/Settings/RelationshipSettings.php index a2f1cfea1..1933ce1d4 100644 --- a/app/Http/Controllers/Settings/RelationshipSettings.php +++ b/app/Http/Controllers/Settings/RelationshipSettings.php @@ -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'));