1
0
Fork 0
forked from mirror/pixelfed

Update AP delivery job

This commit is contained in:
Daniel Supernault 2018-12-24 22:21:57 -07:00
parent d11c71cdec
commit 94ee7a2f25
No known key found for this signature in database
GPG key ID: 0DEF1C662C9033F7

View file

@ -38,6 +38,10 @@ class StatusActivityPubDeliver implements ShouldQueue
{
$status = $this->status;
if($status->local == true || $status->url || $status->uri) {
return;
}
$audience = $status->profile->getAudienceInbox();
$profile = $status->profile;
@ -49,7 +53,5 @@ class StatusActivityPubDeliver implements ShouldQueue
foreach($audience as $url) {
Helpers::sendSignedObject($profile, $url, $activity);
}
// todo: fanout on write
}
}