mirror of
https://github.com/pixelfed/pixelfed.git
synced 2024-11-29 09:43:16 +00:00
Update CollectionController
This commit is contained in:
parent
4b41f48972
commit
031c93915e
1 changed files with 3 additions and 0 deletions
|
@ -79,6 +79,9 @@ class CollectionController extends Controller
|
|||
]);
|
||||
$profile = Auth::user()->profile;
|
||||
$collection = Collection::whereProfileId($profile->id)->findOrFail($id);
|
||||
if($collection->items()->count() == 0) {
|
||||
abort(404);
|
||||
}
|
||||
$collection->title = e($request->input('title'));
|
||||
$collection->description = e($request->input('description'));
|
||||
$collection->visibility = e($request->input('visibility'));
|
||||
|
|
Loading…
Reference in a new issue