mirror of
https://github.com/pixelfed/pixelfed.git
synced 2024-11-30 02:03:16 +00:00
Update AccountController
This commit is contained in:
parent
2876ec30d4
commit
614b951c5e
1 changed files with 2 additions and 2 deletions
|
@ -64,12 +64,12 @@ class AccountController extends Controller
|
||||||
]);
|
]);
|
||||||
$profile = Auth::user()->profile;
|
$profile = Auth::user()->profile;
|
||||||
$action = $request->input('a');
|
$action = $request->input('a');
|
||||||
$timeago = Carbon::now()->subMonths(1);
|
$timeago = Carbon::now()->subMonths(3);
|
||||||
$following = $profile->following->pluck('id');
|
$following = $profile->following->pluck('id');
|
||||||
$notifications = Notification::whereIn('actor_id', $following)
|
$notifications = Notification::whereIn('actor_id', $following)
|
||||||
->where('profile_id', '!=', $profile->id)
|
->where('profile_id', '!=', $profile->id)
|
||||||
->whereDate('created_at', '>', $timeago)
|
->whereDate('created_at', '>', $timeago)
|
||||||
->orderBy('notifications.id', 'desc')
|
->orderBy('notifications.created_at', 'desc')
|
||||||
->simplePaginate(30);
|
->simplePaginate(30);
|
||||||
|
|
||||||
return view('account.following', compact('profile', 'notifications'));
|
return view('account.following', compact('profile', 'notifications'));
|
||||||
|
|
Loading…
Reference in a new issue