Remove Text\BBCode::scaleExternalImage

- Image size is a CSS concern, not a PHP one
This commit is contained in:
Hypolite Petovan 2023-01-23 20:40:20 -05:00
parent 23e0ce3c1b
commit b4cbe4250e
3 changed files with 1 additions and 71 deletions

View file

@ -972,7 +972,7 @@ class Item
$post['deny_cid'] = $owner['deny_cid'];
$post['deny_gid'] = $owner['deny_gid'];
}
if ($post['allow_gid'] || $post['allow_cid'] || $post['deny_gid'] || $post['deny_cid']) {
$post['private'] = ItemModel::PRIVATE;
} elseif ($this->pConfig->get($post['uid'], 'system', 'unlisted')) {
@ -1011,7 +1011,6 @@ class Item
// Convert links with empty descriptions to links without an explicit description
$post['body'] = trim(preg_replace('#\[url=([^\]]*?)\]\[/url\]#ism', '[url]$1[/url]', $post['body']));
$post['body'] = $this->bbCodeVideo->transform($post['body']);
$post['body'] = BBCode::scaleExternalImages($post['body']);
$post = $this->setObjectType($post);
// Personal notes must never be altered to a forum post.