1
0
mirror of https://github.com/BookStackApp/BookStack.git synced 2025-07-31 15:24:31 +03:00

Added "ACTIVITY_LOGGED" theme event

Closes #3572
This commit is contained in:
Dan Brown
2022-07-17 13:28:56 +01:00
parent 8f9923c7c1
commit 5f5b6ff0be
3 changed files with 36 additions and 0 deletions

View File

@ -3,7 +3,9 @@
namespace BookStack\Actions;
use BookStack\Entities\Models\Entity;
use BookStack\Facades\Theme;
use BookStack\Interfaces\Loggable;
use BookStack\Theming\ThemeEvents;
use Illuminate\Database\Eloquent\Builder;
use Illuminate\Support\Facades\Log;
@ -27,8 +29,10 @@ class ActivityLogger
}
$activity->save();
$this->setNotification($type);
$this->dispatchWebhooks($type, $detail);
Theme::dispatch(ThemeEvents::ACTIVITY_LOGGED, $type, $detail);
}
/**