mirror of
https://github.com/pixelfed/pixelfed.git
synced 2024-12-26 06:53:17 +00:00
Update NotificationService, fix order bug
This commit is contained in:
parent
61d235b797
commit
0210f8aa2a
1 changed files with 2 additions and 0 deletions
|
@ -58,6 +58,7 @@ class NotificationService {
|
|||
$stop = $stop > 400 ? 400 : $stop;
|
||||
$ids = Notification::where('id', '>', self::getEpochId())
|
||||
->where('profile_id', $id)
|
||||
->orderByDesc('id')
|
||||
->skip($start)
|
||||
->take($stop)
|
||||
->pluck('id');
|
||||
|
@ -281,6 +282,7 @@ class NotificationService {
|
|||
if(self::count($id) == 0 || $force == true) {
|
||||
$ids = Notification::where('profile_id', $id)
|
||||
->where('id', '>', self::getEpochId())
|
||||
->orderByDesc('id')
|
||||
->limit($stop)
|
||||
->pluck('id');
|
||||
foreach($ids as $key) {
|
||||
|
|
Loading…
Reference in a new issue