]> git.mxchange.org Git - friendica.git/commitdiff
Delete previous post version's link attachments before posting the one from the curre...
authorHank Grabowski <hankgrabowski@gmail.com>
Sun, 19 Mar 2023 01:35:38 +0000 (21:35 -0400)
committerHank Grabowski <hankgrabowski@gmail.com>
Sun, 19 Mar 2023 01:35:38 +0000 (21:35 -0400)
src/Model/Item.php

index 78275c8356f147350e9be19699e975841077d148..93ad4fd8f0db787e7306b492185ad1f5fd2e0b80 100644 (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']);