Daniel Supernault 6 年之前
父節點
當前提交
a8fe297c2b
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      app/Http/Controllers/CollectionController.php

+ 1 - 1
app/Http/Controllers/CollectionController.php

@@ -122,7 +122,7 @@ class CollectionController extends Controller
         }
 
         $status = Status::whereScope('public')
-            ->whereIn('type', ['photo'])
+            ->whereIn('type', ['photo', 'photo:album', 'video'])
             ->findOrFail($postId);
 
         $item = CollectionItem::firstOrCreate([