mirror of
https://github.com/pixelfed/pixelfed.git
synced 2024-11-22 22:41:27 +00:00
Update CollectionController, fixes #3946
This commit is contained in:
parent
dda9e77024
commit
abd52f4d3a
1 changed files with 0 additions and 1 deletions
|
@ -135,7 +135,6 @@ class CollectionController extends Controller
|
||||||
|
|
||||||
$collection = Collection::whereProfileId($profileId)->findOrFail($collectionId);
|
$collection = Collection::whereProfileId($profileId)->findOrFail($collectionId);
|
||||||
$count = $collection->items()->count();
|
$count = $collection->items()->count();
|
||||||
CollectionService::deleteCollection($collection->id);
|
|
||||||
|
|
||||||
if($count) {
|
if($count) {
|
||||||
CollectionItem::whereCollectionId($collection->id)
|
CollectionItem::whereCollectionId($collection->id)
|
||||||
|
|
Loading…
Reference in a new issue