Merge pull request #12896 from HankG/mastodon-status-edit-fix-link-preview-changing

Fix being able to change/remove attached links.
pull/12899/head
Hypolite Petovan 2023-03-16 16:39:18 -04:00 zatwierdzone przez GitHub
commit 1950776142
Nie znaleziono w bazie danych klucza dla tego podpisu
ID klucza GPG: 4AEE18F83AFDEB23
1 zmienionych plików z 3 dodań i 0 usunięć

Wyświetl plik

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