1
0
Fork 1
mirror of https://github.com/pixelfed/pixelfed.git synced 2024-12-24 08:44:02 +00:00

Update InternalApiController

This commit is contained in:
Daniel Supernault 2019-06-04 21:46:53 -06:00
parent 1814096f75
commit a0fdee5a72
No known key found for this signature in database
GPG key ID: 0DEF1C662C9033F7

View file

@ -113,10 +113,7 @@ class InternalApiController extends Controller
'type'
)
->whereNull('uri')
->whereHas('media')
->whereHas('profile', function($q) {
return $q->whereNull('status');
})
->whereIn('type', ['photo','photo:album', 'video'])
->whereIsNsfw(false)
->whereVisibility('public')
->whereNotIn('profile_id', $following)