mirror of
https://github.com/pixelfed/pixelfed.git
synced 2024-11-22 06:21:27 +00:00
Update model observers, handle events after all transactions are committed
This commit is contained in:
parent
1658b689e8
commit
78665b0c17
7 changed files with 49 additions and 0 deletions
|
@ -9,6 +9,13 @@ use App\Services\AccountService;
|
|||
|
||||
class AvatarObserver
|
||||
{
|
||||
/**
|
||||
* Handle events after all transactions are committed.
|
||||
*
|
||||
* @var bool
|
||||
*/
|
||||
public $afterCommit = true;
|
||||
|
||||
/**
|
||||
* Handle the avatar "created" event.
|
||||
*
|
||||
|
|
|
@ -7,6 +7,13 @@ use App\Services\LikeService;
|
|||
|
||||
class LikeObserver
|
||||
{
|
||||
/**
|
||||
* Handle events after all transactions are committed.
|
||||
*
|
||||
* @var bool
|
||||
*/
|
||||
public $afterCommit = true;
|
||||
|
||||
/**
|
||||
* Handle the Like "created" event.
|
||||
*
|
||||
|
|
|
@ -9,6 +9,13 @@ use Log;
|
|||
|
||||
class ModLogObserver
|
||||
{
|
||||
/**
|
||||
* Handle events after all transactions are committed.
|
||||
*
|
||||
* @var bool
|
||||
*/
|
||||
public $afterCommit = true;
|
||||
|
||||
/**
|
||||
* Handle the mod log "created" event.
|
||||
*
|
||||
|
|
|
@ -7,6 +7,13 @@ use App\Services\NotificationService;
|
|||
|
||||
class NotificationObserver
|
||||
{
|
||||
/**
|
||||
* Handle events after all transactions are committed.
|
||||
*
|
||||
* @var bool
|
||||
*/
|
||||
public $afterCommit = true;
|
||||
|
||||
/**
|
||||
* Handle the notification "created" event.
|
||||
*
|
||||
|
|
|
@ -7,6 +7,13 @@ use App\Services\AccountService;
|
|||
|
||||
class ProfileObserver
|
||||
{
|
||||
/**
|
||||
* Handle events after all transactions are committed.
|
||||
*
|
||||
* @var bool
|
||||
*/
|
||||
public $afterCommit = true;
|
||||
|
||||
/**
|
||||
* Handle the Profile "created" event.
|
||||
*
|
||||
|
|
|
@ -7,6 +7,13 @@ use App\Services\StatusHashtagService;
|
|||
|
||||
class StatusHashtagObserver
|
||||
{
|
||||
/**
|
||||
* Handle events after all transactions are committed.
|
||||
*
|
||||
* @var bool
|
||||
*/
|
||||
public $afterCommit = true;
|
||||
|
||||
/**
|
||||
* Handle the notification "created" event.
|
||||
*
|
||||
|
|
|
@ -7,6 +7,13 @@ use App\Services\UserFilterService;
|
|||
|
||||
class UserFilterObserver
|
||||
{
|
||||
/**
|
||||
* Handle events after all transactions are committed.
|
||||
*
|
||||
* @var bool
|
||||
*/
|
||||
public $afterCommit = true;
|
||||
|
||||
/**
|
||||
* Handle the user filter "created" event.
|
||||
*
|
||||
|
|
Loading…
Reference in a new issue