Explorar o código

Update SharePipeline

Daniel Supernault hai 1 ano
pai
achega
ec2a1ed99c
Modificáronse 1 ficheiros con 2 adicións e 1 borrados
  1. 2 1
      app/Jobs/SharePipeline/UndoSharePipeline.php

+ 2 - 1
app/Jobs/SharePipeline/UndoSharePipeline.php

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