Selaa lähdekoodia

Update ApiV1Controller, fix mute/blocks orderBy

Daniel Supernault 2 vuotta sitten
vanhempi
commit
d06fac072c
1 muutettua tiedostoa jossa 2 lisäystä ja 0 poistoa
  1. 2 0
      app/Http/Controllers/Api/ApiV1Controller.php

+ 2 - 0
app/Http/Controllers/Api/ApiV1Controller.php

@@ -888,6 +888,7 @@ class ApiV1Controller extends Controller
 			->whereUserId($user->profile_id)
 			->whereFilterableType('App\Profile')
 			->whereFilterType('block')
+			->orderByDesc('id')
 			->simplePaginate($limit)
 			->pluck('filterable_id')
 			->map(function($id) {
@@ -1751,6 +1752,7 @@ class ApiV1Controller extends Controller
 		$mutes = UserFilter::whereUserId($user->profile_id)
 			->whereFilterableType('App\Profile')
 			->whereFilterType('mute')
+			->orderByDesc('id')
 			->simplePaginate($limit)
 			->pluck('filterable_id')
 			->map(function($id) {