From 7933e6b693cdbc3170a3a5ae55af4fd1fb73402d Mon Sep 17 00:00:00 2001 From: Cyperghost Date: Wed, 17 Jan 2024 15:02:46 +0100 Subject: [PATCH] Fix none bb-code links --- .../files/lib/system/html/node/HtmlNodeUnfurlLink.class.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wcfsetup/install/files/lib/system/html/node/HtmlNodeUnfurlLink.class.php b/wcfsetup/install/files/lib/system/html/node/HtmlNodeUnfurlLink.class.php index 1c71ed2c46..74add3acd5 100644 --- a/wcfsetup/install/files/lib/system/html/node/HtmlNodeUnfurlLink.class.php +++ b/wcfsetup/install/files/lib/system/html/node/HtmlNodeUnfurlLink.class.php @@ -57,7 +57,7 @@ class HtmlNodeUnfurlLink extends HtmlNodePlainLink private static function removeStyling(HtmlNodePlainLink $element): void { - if ($element->topLevelParent == null) { + if (!$element->aloneInParagraph) { return; } foreach ($element->topLevelParent->childNodes as $child) { -- 2.20.1