Skip to content

Commit

Permalink
chore: add code comment / FIXME
Browse files Browse the repository at this point in the history
  • Loading branch information
eteubert committed Nov 18, 2023
1 parent 9dae44b commit 53b0ee2
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions includes/api/episodes.php
Original file line number Diff line number Diff line change
Expand Up @@ -834,6 +834,11 @@ public function update_item_media_disable($request)

$file = MediaFile::find_by_episode_id_and_episode_asset_id($episode->id, $asset_id);
if ($file) {
// FIXME: Problem: When deleting a media file, all associated
// downloads are lost. We should never ever delete a media file.
// Maybe add a boolean flag to it instead that remembers if the
// checkbox is on or off.
// @see https://github.com/podlove/podlove-publisher/issues/1410
$file->delete();
}

Expand Down

0 comments on commit 53b0ee2

Please sign in to comment.