mirror of
https://github.com/pixelfed/pixelfed.git
synced 2024-11-22 14:31:26 +00:00
Update FollowPipeline
This commit is contained in:
parent
1347bb618d
commit
626bb4e700
2 changed files with 5 additions and 1 deletions
|
@ -49,7 +49,7 @@ class FollowActivityPubDeliver implements ShouldQueue
|
||||||
$actor = $follow->actor;
|
$actor = $follow->actor;
|
||||||
$target = $follow->target;
|
$target = $follow->target;
|
||||||
|
|
||||||
if($target->domain == null || $target->inbox_url == null) {
|
if($target->domain == null || $target->inbox_url == null || !$actor->private_key) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -46,6 +46,10 @@ class FollowPipeline implements ShouldQueue
|
||||||
$actor = $follower->actor;
|
$actor = $follower->actor;
|
||||||
$target = $follower->target;
|
$target = $follower->target;
|
||||||
|
|
||||||
|
if($target->domain || !$target->private_key) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
try {
|
try {
|
||||||
$notification = new Notification();
|
$notification = new Notification();
|
||||||
$notification->profile_id = $target->id;
|
$notification->profile_id = $target->id;
|
||||||
|
|
Loading…
Reference in a new issue