Browse Source

Update FollowPipeline

Daniel Supernault 6 năm trước cách đây
mục cha
commit
52bbe0061a

+ 7 - 0
app/Jobs/FollowPipeline/FollowActivityPubDeliver.php

@@ -21,6 +21,13 @@ class FollowActivityPubDeliver implements ShouldQueue
 
     protected $followRequest;
 
+    /**
+     * Delete the job if its models no longer exist.
+     *
+     * @var bool
+     */
+    public $deleteWhenMissingModels = true;
+    
     /**
      * Create a new job instance.
      *

+ 7 - 0
app/Jobs/FollowPipeline/FollowPipeline.php

@@ -18,6 +18,13 @@ class FollowPipeline implements ShouldQueue
 
     protected $follower;
 
+    /**
+     * Delete the job if its models no longer exist.
+     *
+     * @var bool
+     */
+    public $deleteWhenMissingModels = true;
+    
     /**
      * Create a new job instance.
      *