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); }