From 261975afe93cf3e8896784d3f0bc772b6ae7414d Mon Sep 17 00:00:00 2001 From: Hank Grabowski Date: Sat, 18 Mar 2023 21:35:38 -0400 Subject: [PATCH] Delete previous post version's link attachments before posting the one from the current update. --- src/Model/Item.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/Model/Item.php b/src/Model/Item.php index 78275c8356..93ad4fd8f0 100644 --- a/src/Model/Item.php +++ b/src/Model/Item.php @@ -201,6 +201,8 @@ class Item $notify_items = []; while ($item = DBA::fetch($items)) { + Post\Media::deleteByURIId($item['uri-id'], [Post\Media::HTML]); + if (!empty($fields['body'])) { if (!empty($item['quote-uri-id'])) { $fields['body'] = BBCode::removeSharedData($fields['body']); -- 2.39.5