1
0
Fork 0

Update PublicApiController

This commit is contained in:
Daniel Supernault 2019-04-15 19:19:41 -06:00
parent 0bb665460a
commit e3c425e222
No known key found for this signature in database
GPG Key ID: 0DEF1C662C9033F7
1 changed files with 4 additions and 2 deletions

View File

@ -457,10 +457,11 @@ class PublicApiController extends Controller
)->where('id', $dir, $id)
->whereIn('type', ['photo', 'photo:album', 'video', 'video:album'])
->whereNotIn('profile_id', $filtered)
->whereNotNull('uri')
->whereNull('in_reply_to_id')
->whereNull('reblog_of_id')
->whereVisibility('public')
->orderBy('created_at', 'desc')
->latest()
->limit($limit)
->get();
} else {
@ -484,8 +485,9 @@ class PublicApiController extends Controller
->whereNotIn('profile_id', $filtered)
->whereNull('in_reply_to_id')
->whereNull('reblog_of_id')
->whereNotNull('uri')
->whereVisibility('public')
->orderBy('created_at', 'desc')
->latest()
->simplePaginate($limit);
}