From 07e55d76e8d2a3fc16d2b0b89ff010b74d7b3d92 Mon Sep 17 00:00:00 2001 From: Matthias Guillitte Date: Sat, 7 Jun 2025 15:42:52 +0200 Subject: [PATCH] Only post when in production --- app/Browser/Jobs/InstagramRepost/InstagramRepostJob.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/app/Browser/Jobs/InstagramRepost/InstagramRepostJob.php b/app/Browser/Jobs/InstagramRepost/InstagramRepostJob.php index 4db2f5b..1ee413e 100644 --- a/app/Browser/Jobs/InstagramRepost/InstagramRepostJob.php +++ b/app/Browser/Jobs/InstagramRepost/InstagramRepostJob.php @@ -342,7 +342,9 @@ class InstagramRepostJob extends BrowserJob implements ShouldBeUniqueUntilProces sleep(2); // Wait for the caption to be added - $this->clickNext($browser); // Share the post + if (config("app.environment") !== "local") { // Don't share the post in local environment + $this->clickNext($browser); // Share the post + } sleep(5); // Wait for the post to be completed