Update FollowPipeline

This commit is contained in:
Daniel Supernault 2019-04-04 13:42:12 -06:00
parent 1347bb618d
commit 626bb4e700
No known key found for this signature in database
GPG key ID: 0DEF1C662C9033F7
2 changed files with 5 additions and 1 deletions

View file

@ -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;
}

View file

@ -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;