Update PublicApiController

pull/881/head
Daniel Supernault 6 years ago
parent eb7651e8ef
commit 9ca18f6b0d
No known key found for this signature in database
GPG Key ID: 0DEF1C662C9033F7

@ -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…
Cancel
Save