handle mastodon urls in markdown/bbcode conversion

This commit is contained in:
zotlabs
2017-05-08 19:10:08 -07:00
committed by Mario Vavti
parent 6c0e0b3eae
commit fa94c0a65b
2 changed files with 3 additions and 3 deletions

View File

@@ -776,7 +776,7 @@ function bbcode($Text, $preserve_nl = false, $tryoembed = true, $cache = false)
// Perform URL Search
$urlchars = '[a-zA-Z0-9\:\/\-\?\&\;\.\=\@\_\~\#\%\$\!\+\,\@\(\)]';
$urlchars = '[a-zA-Z0-9\:\/\-\?\&\;\.\=\_\~\#\%\$\!\+\,\@\(\)]';
if (strpos($Text,'http') !== false) {
if($tryoembed) {