mirror of
https://github.com/pixelfed/pixelfed.git
synced 2024-11-29 17:53:16 +00:00
Update AP delivery job
This commit is contained in:
parent
d11c71cdec
commit
94ee7a2f25
1 changed files with 4 additions and 2 deletions
|
@ -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
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue