]> BookStack Code Mirror - bookstack/blobdiff - app/Http/Controllers/ChapterController.php
Checked over recycle bin parent/child flows
[bookstack] / app / Http / Controllers / ChapterController.php
index 1355979107eb0181d272e3610511688d5772b7b7..5d8631154c3fddfebb9fbe3b44b09d65f8587558 100644 (file)
@@ -128,7 +128,7 @@ class ChapterController extends Controller
         $chapter = $this->chapterRepo->getBySlug($bookSlug, $chapterSlug);
         $this->checkOwnablePermission('chapter-delete', $chapter);
 
-        Activity::addMessage('chapter_delete', $chapter->name, $chapter->book->id);
+        Activity::add($chapter, 'chapter_delete', $chapter->book->id);
         $this->chapterRepo->destroy($chapter);
 
         return redirect($chapter->book->getUrl());