Daniel Supernault %!s(int64=6) %!d(string=hai) anos
pai
achega
a8fe297c2b
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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([