Update api controller

This commit is contained in:
Daniel Supernault 2019-09-26 22:42:33 -06:00
parent 7243489088
commit 3570e7acbb
No known key found for this signature in database
GPG Key ID: 0DEF1C662C9033F7
1 changed files with 4 additions and 2 deletions

View File

@ -1315,7 +1315,8 @@ class ApiV1Controller extends Controller
'place_id',
'created_at',
'updated_at'
)->whereIn('type', ['photo', 'photo:album', 'video', 'video:album'])
)->whereNull('uri')
->whereIn('type', ['photo', 'photo:album', 'video', 'video:album'])
->with('profile', 'hashtags', 'mentions')
->where('id', $dir, $id)
->whereVisibility('public')
@ -1340,7 +1341,8 @@ class ApiV1Controller extends Controller
'place_id',
'created_at',
'updated_at'
)->whereIn('type', ['photo', 'photo:album', 'video', 'video:album'])
)->whereNull('uri')
->whereIn('type', ['photo', 'photo:album', 'video', 'video:album'])
->with('profile', 'hashtags', 'mentions')
->whereVisibility('public')
->latest()