mirror of
https://github.com/pixelfed/pixelfed.git
synced 2024-11-27 00:33:17 +00:00
Merge pull request #881 from pixelfed/frontend-ui-refactor
Update PublicApiController
This commit is contained in:
commit
458d9de6b9
1 changed files with 4 additions and 6 deletions
|
@ -252,8 +252,7 @@ class PublicApiController extends Controller
|
|||
'local',
|
||||
'created_at',
|
||||
'updated_at'
|
||||
)
|
||||
->whereHas('media')
|
||||
)->whereIn('type', ['photo', 'photo:album', 'video', 'video:album'])
|
||||
->whereLocal(true)
|
||||
->whereNull('uri')
|
||||
->where('id', $dir, $id)
|
||||
|
@ -280,7 +279,7 @@ class PublicApiController extends Controller
|
|||
'local',
|
||||
'created_at',
|
||||
'updated_at'
|
||||
)->whereHas('media')
|
||||
)->whereIn('type', ['photo', 'photo:album', 'video', 'video:album'])
|
||||
->whereLocal(true)
|
||||
->whereNull('uri')
|
||||
->whereNotIn('profile_id', $filtered)
|
||||
|
@ -354,8 +353,7 @@ class PublicApiController extends Controller
|
|||
'local',
|
||||
'created_at',
|
||||
'updated_at'
|
||||
)
|
||||
->whereHas('media')
|
||||
)->whereIn('type', ['photo', 'photo:album', 'video', 'video:album'])
|
||||
->whereLocal(true)
|
||||
->whereNull('uri')
|
||||
->where('id', $dir, $id)
|
||||
|
@ -383,7 +381,7 @@ class PublicApiController extends Controller
|
|||
'local',
|
||||
'created_at',
|
||||
'updated_at'
|
||||
)->whereHas('media')
|
||||
)->whereIn('type', ['photo', 'photo:album', 'video', 'video:album'])
|
||||
->whereLocal(true)
|
||||
->whereNull('uri')
|
||||
->whereIn('profile_id', $following)
|
||||
|
|
Loading…
Reference in a new issue