Fix being able to change/remove attached links.

This commit is contained in:
Hank Grabowski 2023-03-16 14:34:39 -04:00
parent b3d779ef7b
commit 02a87d9f33
1 changed files with 3 additions and 0 deletions

View 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) {