1
0
Fork 0

Update SharePipeline

This commit is contained in:
Daniel Supernault 2023-07-30 05:50:39 -06:00 committed by chris
parent ec335288df
commit 925f5e8df2
1 changed files with 2 additions and 1 deletions

View File

@ -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;
}