]> git.mxchange.org Git - friendica.git/commitdiff
Fix being able to change/remove attached links.
authorHank Grabowski <hankgrabowski@gmail.com>
Thu, 16 Mar 2023 18:34:39 +0000 (14:34 -0400)
committerHank Grabowski <hankgrabowski@gmail.com>
Thu, 16 Mar 2023 18:34:39 +0000 (14:34 -0400)
src/Module/Api/Mastodon/Statuses.php

index 87840eef9704b0e615758ea24beb95afc7266462..a73a38da2883004055d73dd44bc140908a5baee9 100644 (file)
@@ -151,6 +151,9 @@ class Statuses extends BaseApi
                        throw new \Exception('Missing parameters in definition');
                }
 
+               // Link Preview Attachment Processing
+               Post\Media::deleteByURIId($post['uri-id'], [Post\Media::HTML]);
+
                Item::update($item, ['id' => $post['id']]);
 
                foreach (Tag::getByURIId($post['uri-id']) as $tagToRemove) {