Delete previous post version's link attachments before posting the one from the current update.

This commit is contained in:
Hank Grabowski 2023-03-18 21:35:38 -04:00
parent bbb5440144
commit 261975afe9

View file

@ -201,6 +201,8 @@ class Item
$notify_items = []; $notify_items = [];
while ($item = DBA::fetch($items)) { while ($item = DBA::fetch($items)) {
Post\Media::deleteByURIId($item['uri-id'], [Post\Media::HTML]);
if (!empty($fields['body'])) { if (!empty($fields['body'])) {
if (!empty($item['quote-uri-id'])) { if (!empty($item['quote-uri-id'])) {
$fields['body'] = BBCode::removeSharedData($fields['body']); $fields['body'] = BBCode::removeSharedData($fields['body']);