From 02a87d9f33d8d8ceb2a4e5e5ada25246d8b256a0 Mon Sep 17 00:00:00 2001 From: Hank Grabowski Date: Thu, 16 Mar 2023 14:34:39 -0400 Subject: [PATCH] Fix being able to change/remove attached links. --- src/Module/Api/Mastodon/Statuses.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/Module/Api/Mastodon/Statuses.php b/src/Module/Api/Mastodon/Statuses.php index 87840eef9..a73a38da2 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) {