mirror of
https://github.com/pixelfed/pixelfed.git
synced 2024-11-22 22:41:27 +00:00
Update RelationshipSettings Controller, fixes #1605
This commit is contained in:
parent
b8e7ac270e
commit
4d2da2f1b0
1 changed files with 1 additions and 5 deletions
|
@ -22,7 +22,7 @@ trait RelationshipSettings
|
||||||
'mode' => 'nullable|string|in:following,followers,hashtags'
|
'mode' => 'nullable|string|in:following,followers,hashtags'
|
||||||
]);
|
]);
|
||||||
|
|
||||||
$mode = $request->input('mode');
|
$mode = $request->input('mode') ?? 'followers';
|
||||||
$profile = Auth::user()->profile;
|
$profile = Auth::user()->profile;
|
||||||
|
|
||||||
switch ($mode) {
|
switch ($mode) {
|
||||||
|
@ -37,10 +37,6 @@ trait RelationshipSettings
|
||||||
case 'hashtags':
|
case 'hashtags':
|
||||||
$data = $profile->hashtagFollowing()->with('hashtag')->simplePaginate(10);
|
$data = $profile->hashtagFollowing()->with('hashtag')->simplePaginate(10);
|
||||||
break;
|
break;
|
||||||
|
|
||||||
default:
|
|
||||||
$data = [];
|
|
||||||
break;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
return view('settings.relationships.home', compact('profile', 'mode', 'data'));
|
return view('settings.relationships.home', compact('profile', 'mode', 'data'));
|
||||||
|
|
Loading…
Reference in a new issue