From 60eb6603bf5701f33cf81dbb492508002c751a80 Mon Sep 17 00:00:00 2001 From: Michael Date: Sun, 27 Oct 2019 17:41:47 +0000 Subject: [PATCH] (hopefully) fix preview issue with tags on Mastodon --- src/Content/Text/BBCode.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Content/Text/BBCode.php b/src/Content/Text/BBCode.php index 8a029fe534..fc5c772d5b 100644 --- a/src/Content/Text/BBCode.php +++ b/src/Content/Text/BBCode.php @@ -1746,9 +1746,9 @@ class BBCode extends BaseObject * - [url=]#[/url] */ $text = preg_replace_callback("/(?:#\[url\=.*?\]|\[url\=.*?\]#)(.*?)\[\/url\]/ism", function($matches) { - return '#' + . '" class="tag" rel="tag" title="' . XML::escape($matches[1]) . '">' . XML::escape($matches[1]) . ''; }, $text);