Skip to content

Commit

Permalink
fix(27178): Remove youtube document on upload instead of modify it
Browse files Browse the repository at this point in the history
  • Loading branch information
Yurujai committed Aug 19, 2024
1 parent a4d49cf commit 2b88483
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion Services/VideoInsertService.php
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,9 @@ private function generateYoutubeDocument(MultimediaObject $multimediaObject, Tag
]);

if ($youtube) {
return $youtube;
$this->documentManager->remove($youtube);
$multimediaObject->removeProperty('youtubeurl');
$this->documentManager->flush();
}

$youtube = new Youtube();
Expand Down

0 comments on commit 2b88483

Please sign in to comment.