Update SharePipeline

pull/4565/head
Daniel Supernault 2 years ago
parent 5a19daabce
commit ec2a1ed99c
No known key found for this signature in database
GPG Key ID: 0DEF1C662C9033F7

@ -61,7 +61,7 @@ class UndoSharePipeline implements ShouldQueue
return;
}
if(config_cache('federation.activitypub.enabled') == false) {
if(config('app.env') !== 'production' || config_cache('federation.activitypub.enabled') == false) {
return $status->delete();
} else {
return $this->remoteAnnounceDeliver();
@ -71,6 +71,7 @@ class UndoSharePipeline implements ShouldQueue
public function remoteAnnounceDeliver()
{
if(config('app.env') !== 'production' || config_cache('federation.activitypub.enabled') == false) {
$status->delete();
return 1;
}

Loading…
Cancel
Save