Delete previous post version's link attachments before posting the one from the current update.
This commit is contained in:
parent
bbb5440144
commit
261975afe9
1 changed files with 2 additions and 0 deletions
|
@ -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']);
|
||||
|
|
Loading…
Reference in a new issue