]> BookStack Code Mirror - bookstack/blobdiff - app/Http/Controllers/BookshelfController.php
Checked over recycle bin parent/child flows
[bookstack] / app / Http / Controllers / BookshelfController.php
index f2cc11c7ba16126eb6f7fef610c8662525d190bf..efe280235bad18e75249b7a58ac50ff25a205d62 100644 (file)
@@ -182,7 +182,7 @@ class BookshelfController extends Controller
         $shelf = $this->bookshelfRepo->getBySlug($slug);
         $this->checkOwnablePermission('bookshelf-delete', $shelf);
 
-        Activity::addMessage('bookshelf_delete', $shelf->name);
+        Activity::add($shelf, 'bookshelf_delete');
         $this->bookshelfRepo->destroy($shelf);
 
         return redirect('/shelves');