Daniel Supernault 6 năm trước cách đây
mục cha
commit
a8fe297c2b
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  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([