diff --git a/app/Jobs/FollowPipeline/FollowActivityPubDeliver.php b/app/Jobs/FollowPipeline/FollowActivityPubDeliver.php index 56f22d99c..42006b27c 100644 --- a/app/Jobs/FollowPipeline/FollowActivityPubDeliver.php +++ b/app/Jobs/FollowPipeline/FollowActivityPubDeliver.php @@ -49,7 +49,7 @@ class FollowActivityPubDeliver implements ShouldQueue $actor = $follow->actor; $target = $follow->target; - if($target->domain == null || $target->inbox_url == null) { + if($target->domain == null || $target->inbox_url == null || !$actor->private_key) { return; } diff --git a/app/Jobs/FollowPipeline/FollowPipeline.php b/app/Jobs/FollowPipeline/FollowPipeline.php index ec6c7ecb8..17ad47889 100644 --- a/app/Jobs/FollowPipeline/FollowPipeline.php +++ b/app/Jobs/FollowPipeline/FollowPipeline.php @@ -46,6 +46,10 @@ class FollowPipeline implements ShouldQueue $actor = $follower->actor; $target = $follower->target; + if($target->domain || !$target->private_key) { + return; + } + try { $notification = new Notification(); $notification->profile_id = $target->id;