Merge pull request #12896 from HankG/mastodon-status-edit-fix-link-preview-changing
Fix being able to change/remove attached links.
This commit is contained in:
commit
1950776142
1 changed files with 3 additions and 0 deletions
|
@ -151,6 +151,9 @@ class Statuses extends BaseApi
|
||||||
throw new \Exception('Missing parameters in definition');
|
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']]);
|
Item::update($item, ['id' => $post['id']]);
|
||||||
|
|
||||||
foreach (Tag::getByURIId($post['uri-id']) as $tagToRemove) {
|
foreach (Tag::getByURIId($post['uri-id']) as $tagToRemove) {
|
||||||
|
|
Loading…
Reference in a new issue