From: Hank Grabowski Date: Thu, 16 Mar 2023 18:34:39 +0000 (-0400) Subject: Fix being able to change/remove attached links. X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=02a87d9f33d8d8ceb2a4e5e5ada25246d8b256a0;p=friendica.git Fix being able to change/remove attached links. --- diff --git a/src/Module/Api/Mastodon/Statuses.php b/src/Module/Api/Mastodon/Statuses.php index 87840eef97..a73a38da28 100644 --- a/src/Module/Api/Mastodon/Statuses.php +++ b/src/Module/Api/Mastodon/Statuses.php @@ -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) {