mirror of
https://github.com/pixelfed/pixelfed.git
synced 2024-11-10 00:34:50 +00:00
Update StatusPipeline
This commit is contained in:
parent
7522364f23
commit
d85fdb8304
1 changed files with 2 additions and 2 deletions
|
@ -49,6 +49,7 @@ class StatusActivityPubDeliver implements ShouldQueue
|
||||||
public function handle()
|
public function handle()
|
||||||
{
|
{
|
||||||
$status = $this->status;
|
$status = $this->status;
|
||||||
|
$profile = $status->profile;
|
||||||
|
|
||||||
if($status->local == false || $status->url || $status->uri) {
|
if($status->local == false || $status->url || $status->uri) {
|
||||||
return;
|
return;
|
||||||
|
@ -56,12 +57,11 @@ class StatusActivityPubDeliver implements ShouldQueue
|
||||||
|
|
||||||
$audience = $status->profile->getAudienceInbox();
|
$audience = $status->profile->getAudienceInbox();
|
||||||
|
|
||||||
if(empty($audience) || $status->visibility != 'public') {
|
if(empty($audience) || $status->scope != 'public') {
|
||||||
// Return on profiles with no remote followers
|
// Return on profiles with no remote followers
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
$profile = $status->profile;
|
|
||||||
|
|
||||||
$fractal = new Fractal\Manager();
|
$fractal = new Fractal\Manager();
|
||||||
$fractal->setSerializer(new ArraySerializer());
|
$fractal->setSerializer(new ArraySerializer());
|
||||||
|
|
Loading…
Reference in a new issue