Skip to content

Commit

Permalink
Update SharePipeline
Browse files Browse the repository at this point in the history
  • Loading branch information
dansup committed Jul 30, 2023
1 parent 5a19daa commit ec2a1ed
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion app/Jobs/SharePipeline/UndoSharePipeline.php
Expand Up @@ -61,7 +61,7 @@ public function handle()
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();
Expand All @@ -71,6 +71,7 @@ public function handle()
public function remoteAnnounceDeliver()
{
if(config('app.env') !== 'production' || config_cache('federation.activitypub.enabled') == false) {
$status->delete();
return 1;
}

Expand Down

0 comments on commit ec2a1ed

Please sign in to comment.