mirror of
https://github.com/pixelfed/pixelfed.git
synced 2024-11-22 14:31:26 +00:00
Update api controller
This commit is contained in:
parent
7243489088
commit
3570e7acbb
1 changed files with 4 additions and 2 deletions
|
@ -1315,7 +1315,8 @@ class ApiV1Controller extends Controller
|
||||||
'place_id',
|
'place_id',
|
||||||
'created_at',
|
'created_at',
|
||||||
'updated_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')
|
->with('profile', 'hashtags', 'mentions')
|
||||||
->where('id', $dir, $id)
|
->where('id', $dir, $id)
|
||||||
->whereVisibility('public')
|
->whereVisibility('public')
|
||||||
|
@ -1340,7 +1341,8 @@ class ApiV1Controller extends Controller
|
||||||
'place_id',
|
'place_id',
|
||||||
'created_at',
|
'created_at',
|
||||||
'updated_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')
|
->with('profile', 'hashtags', 'mentions')
|
||||||
->whereVisibility('public')
|
->whereVisibility('public')
|
||||||
->latest()
|
->latest()
|
||||||
|
|
Loading…
Reference in a new issue