kopia lustrzana https://github.com/pixelfed/pixelfed
Update ApiV1Controller, fix mute/blocks orderBy
rodzic
7685e868db
commit
d06fac072c
|
@ -888,6 +888,7 @@ class ApiV1Controller extends Controller
|
||||||
->whereUserId($user->profile_id)
|
->whereUserId($user->profile_id)
|
||||||
->whereFilterableType('App\Profile')
|
->whereFilterableType('App\Profile')
|
||||||
->whereFilterType('block')
|
->whereFilterType('block')
|
||||||
|
->orderByDesc('id')
|
||||||
->simplePaginate($limit)
|
->simplePaginate($limit)
|
||||||
->pluck('filterable_id')
|
->pluck('filterable_id')
|
||||||
->map(function($id) {
|
->map(function($id) {
|
||||||
|
@ -1751,6 +1752,7 @@ class ApiV1Controller extends Controller
|
||||||
$mutes = UserFilter::whereUserId($user->profile_id)
|
$mutes = UserFilter::whereUserId($user->profile_id)
|
||||||
->whereFilterableType('App\Profile')
|
->whereFilterableType('App\Profile')
|
||||||
->whereFilterType('mute')
|
->whereFilterType('mute')
|
||||||
|
->orderByDesc('id')
|
||||||
->simplePaginate($limit)
|
->simplePaginate($limit)
|
||||||
->pluck('filterable_id')
|
->pluck('filterable_id')
|
||||||
->map(function($id) {
|
->map(function($id) {
|
||||||
|
|
Ładowanie…
Reference in New Issue