Skip to content

Commit

Permalink
when duplicating a feed - change passkey
Browse files Browse the repository at this point in the history
  • Loading branch information
i-just committed Oct 15, 2024
1 parent 8079828 commit 5085077
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/services/Feeds.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down Expand Up @@ -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);
}
Expand Down

0 comments on commit 5085077

Please sign in to comment.