Skip to content

Commit

Permalink
Merge pull request #1534 from craftcms/bugfix/1526-change-passkey-on-…
Browse files Browse the repository at this point in the history
…duplication

when duplicating a feed - change passkey
  • Loading branch information
angrybrad authored Oct 15, 2024
2 parents 24e8f99 + 5085077 commit a07a534
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 a07a534

Please sign in to comment.