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
1 changed files with 2 additions and 0 deletions

View File

@ -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']);