From 3db3d2f1f7a1fef7ef39bccb087c52f9292c88ab Mon Sep 17 00:00:00 2001 From: Michael Date: Mon, 8 May 2017 19:11:47 +0000 Subject: [PATCH] This should make posts fine on GNU Social as well --- include/bbcode.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/include/bbcode.php b/include/bbcode.php index 867c9fe2bf..9a43cdb305 100644 --- a/include/bbcode.php +++ b/include/bbcode.php @@ -180,7 +180,7 @@ function bb_style_url($match) { } /** - * @brief Converts [url] BBCodes in a format that looks fine on Mastodon. + * @brief Converts [url] BBCodes in a format that looks fine on Mastodon and GNU Social. * @param string $url URL that is about to be reformatted * @return string reformatted link including HTML codes */ @@ -191,7 +191,7 @@ function style_url_for_mastodon($url) { $scheme = $parts['scheme'].'://'; $styled_url = str_replace($scheme, '', $styled_url); - $html = ''. + $html = ''. ''; if (strlen($styled_url) > 30) { -- 2.39.5