Explorar el Código

Update SharePipeline

Daniel Supernault hace 1 año
padre
commit
ec2a1ed99c
Se han modificado 1 ficheros con 2 adiciones y 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;
 			return;
 		}
 		}
 
 
-		if(config_cache('federation.activitypub.enabled') == false) {
+		if(config('app.env') !== 'production' || config_cache('federation.activitypub.enabled') == false) {
 			return $status->delete();
 			return $status->delete();
 		} else {
 		} else {
 			return $this->remoteAnnounceDeliver();
 			return $this->remoteAnnounceDeliver();
@@ -71,6 +71,7 @@ class UndoSharePipeline implements ShouldQueue
 	public function remoteAnnounceDeliver()
 	public function remoteAnnounceDeliver()
 	{
 	{
 		if(config('app.env') !== 'production' || config_cache('federation.activitypub.enabled') == false) {
 		if(config('app.env') !== 'production' || config_cache('federation.activitypub.enabled') == false) {
+            $status->delete();
 			return 1;
 			return 1;
 		}
 		}