Bläddra i källkod

Update SharePipeline

Daniel Supernault 1 år sedan
förälder
incheckning
ec2a1ed99c
1 ändrade filer med 2 tillägg och 1 borttagningar
  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;
 		}