From 52bbe0061a48e7dd481d32faa3dd132e93da711a Mon Sep 17 00:00:00 2001 From: Daniel Supernault Date: Sat, 12 Jan 2019 15:22:34 -0700 Subject: [PATCH] Update FollowPipeline --- app/Jobs/FollowPipeline/FollowActivityPubDeliver.php | 7 +++++++ app/Jobs/FollowPipeline/FollowPipeline.php | 7 +++++++ 2 files changed, 14 insertions(+) diff --git a/app/Jobs/FollowPipeline/FollowActivityPubDeliver.php b/app/Jobs/FollowPipeline/FollowActivityPubDeliver.php index 863b2881..56f22d99 100644 --- a/app/Jobs/FollowPipeline/FollowActivityPubDeliver.php +++ b/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. * diff --git a/app/Jobs/FollowPipeline/FollowPipeline.php b/app/Jobs/FollowPipeline/FollowPipeline.php index 8e3bc2ed..ec6c7ecb 100644 --- a/app/Jobs/FollowPipeline/FollowPipeline.php +++ b/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. *