浏览代码

Update api controller

Daniel Supernault 5 年之前
父节点
当前提交
3570e7acbb
共有 1 个文件被更改,包括 4 次插入2 次删除
  1. 4 2
      app/Http/Controllers/Api/ApiV1Controller.php

+ 4 - 2
app/Http/Controllers/Api/ApiV1Controller.php

@@ -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()