From: Hank Grabowski Date: Sun, 19 Mar 2023 01:35:38 +0000 (-0400) Subject: Delete previous post version's link attachments before posting the one from the curre... X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=261975afe93cf3e8896784d3f0bc772b6ae7414d;p=friendica.git Delete previous post version's link attachments before posting the one from the current update. --- 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']);