From 508507772065b52fa832af13ce931c921b62e8e3 Mon Sep 17 00:00:00 2001 From: Iwona Just Date: Tue, 15 Oct 2024 08:19:01 +0100 Subject: [PATCH] when duplicating a feed - change passkey --- src/services/Feeds.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/services/Feeds.php b/src/services/Feeds.php index f0defbf3..02574812 100644 --- a/src/services/Feeds.php +++ b/src/services/Feeds.php @@ -12,6 +12,7 @@ use craft\feedme\models\FeedModel; use craft\feedme\records\FeedRecord; use craft\helpers\Json; +use craft\helpers\StringHelper; use Exception; use Throwable; @@ -192,6 +193,7 @@ public function deleteFeedById($feedId): int public function duplicateFeed($feed): bool { $feed->id = null; + $feed->passkey = StringHelper::randomString(10); return $this->saveFeed($feed); }