mirror of
https://github.com/YunoHost-Apps/pixelfed_ynh.git
synced 2024-09-03 20:06:04 +02: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;
|
$status = $this->status;
|
||||||
|
|
||||||
|
if($status->local == true || $status->url || $status->uri) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
$audience = $status->profile->getAudienceInbox();
|
$audience = $status->profile->getAudienceInbox();
|
||||||
$profile = $status->profile;
|
$profile = $status->profile;
|
||||||
|
|
||||||
|
@ -49,7 +53,5 @@ class StatusActivityPubDeliver implements ShouldQueue
|
||||||
foreach($audience as $url) {
|
foreach($audience as $url) {
|
||||||
Helpers::sendSignedObject($profile, $url, $activity);
|
Helpers::sendSignedObject($profile, $url, $activity);
|
||||||
}
|
}
|
||||||
|
|
||||||
// todo: fanout on write
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue