forked from mirror/pixelfed
Update PublicApiController
This commit is contained in:
parent
eb7651e8ef
commit
9ca18f6b0d
1 changed files with 4 additions and 6 deletions
|
@ -252,8 +252,7 @@ class PublicApiController extends Controller
|
||||||
'local',
|
'local',
|
||||||
'created_at',
|
'created_at',
|
||||||
'updated_at'
|
'updated_at'
|
||||||
)
|
)->whereIn('type', ['photo', 'photo:album', 'video', 'video:album'])
|
||||||
->whereHas('media')
|
|
||||||
->whereLocal(true)
|
->whereLocal(true)
|
||||||
->whereNull('uri')
|
->whereNull('uri')
|
||||||
->where('id', $dir, $id)
|
->where('id', $dir, $id)
|
||||||
|
@ -280,7 +279,7 @@ class PublicApiController extends Controller
|
||||||
'local',
|
'local',
|
||||||
'created_at',
|
'created_at',
|
||||||
'updated_at'
|
'updated_at'
|
||||||
)->whereHas('media')
|
)->whereIn('type', ['photo', 'photo:album', 'video', 'video:album'])
|
||||||
->whereLocal(true)
|
->whereLocal(true)
|
||||||
->whereNull('uri')
|
->whereNull('uri')
|
||||||
->whereNotIn('profile_id', $filtered)
|
->whereNotIn('profile_id', $filtered)
|
||||||
|
@ -354,8 +353,7 @@ class PublicApiController extends Controller
|
||||||
'local',
|
'local',
|
||||||
'created_at',
|
'created_at',
|
||||||
'updated_at'
|
'updated_at'
|
||||||
)
|
)->whereIn('type', ['photo', 'photo:album', 'video', 'video:album'])
|
||||||
->whereHas('media')
|
|
||||||
->whereLocal(true)
|
->whereLocal(true)
|
||||||
->whereNull('uri')
|
->whereNull('uri')
|
||||||
->where('id', $dir, $id)
|
->where('id', $dir, $id)
|
||||||
|
@ -383,7 +381,7 @@ class PublicApiController extends Controller
|
||||||
'local',
|
'local',
|
||||||
'created_at',
|
'created_at',
|
||||||
'updated_at'
|
'updated_at'
|
||||||
)->whereHas('media')
|
)->whereIn('type', ['photo', 'photo:album', 'video', 'video:album'])
|
||||||
->whereLocal(true)
|
->whereLocal(true)
|
||||||
->whereNull('uri')
|
->whereNull('uri')
|
||||||
->whereIn('profile_id', $following)
|
->whereIn('profile_id', $following)
|
||||||
|
|
Loading…
Reference in a new issue