mirror of
https://github.com/pixelfed/pixelfed.git
synced 2024-11-09 16:24:51 +00:00
Update ApiV1Controller, fix mute/blocks orderBy
This commit is contained in:
parent
7685e868db
commit
d06fac072c
1 changed files with 2 additions and 0 deletions
|
@ -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) {
|
||||
|
|
Loading…
Reference in a new issue