소스 검색

Merge pull request #3670 from pixelfed/staging

Staging
daniel 2 년 전
부모
커밋
412ec6b22e

+ 1 - 0
CHANGELOG.md

@@ -85,6 +85,7 @@
 - Update SettingsController, fix double json encoding and cache settings for 7 days ([4514ab1d](https://github.com/pixelfed/pixelfed/commit/4514ab1d))
 - Update ApiV1Controller, fix mute/block entities ([364adb43](https://github.com/pixelfed/pixelfed/commit/364adb43))
 - Update atom feed, remove invalid entities ([e362ef9e](https://github.com/pixelfed/pixelfed/commit/e362ef9e))
+- Update StatusObserver, handle events after all transactions are committed ([805a014e](https://github.com/pixelfed/pixelfed/commit/805a014e))
 -  ([](https://github.com/pixelfed/pixelfed/commit/))
 
 ## [v0.11.3 (2022-05-09)](https://github.com/pixelfed/pixelfed/compare/v0.11.2...v0.11.3)

+ 7 - 0
app/Observers/AvatarObserver.php

@@ -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 - 0
app/Observers/LikeObserver.php

@@ -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.
      *

+ 7 - 0
app/Observers/ModLogObserver.php

@@ -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 - 0
app/Observers/NotificationObserver.php

@@ -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 - 0
app/Observers/ProfileObserver.php

@@ -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 - 0
app/Observers/StatusHashtagObserver.php

@@ -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 - 0
app/Observers/StatusObserver.php

@@ -7,6 +7,13 @@ use App\Services\ProfileStatusService;
 
 class StatusObserver
 {
+    /**
+     * Handle events after all transactions are committed.
+     *
+     * @var bool
+     */
+    public $afterCommit = true;
+
     /**
      * Handle the Status "created" event.
      *

+ 7 - 0
app/Observers/UserFilterObserver.php

@@ -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.
 	 *