Disabled the rewriting of hashtag links

This commit is contained in:
Michael Vogel 2015-03-03 14:10:42 +01:00
parent 027b11ebb5
commit 4a10cb1b99

View File

@ -1576,11 +1576,11 @@ function item_body_set_hashtags(&$item) {
$URLSearchString = "^\[\]"; $URLSearchString = "^\[\]";
// All hashtags should point to the home server // All hashtags should point to the home server
$item["body"] = preg_replace("/#\[url\=([$URLSearchString]*)\](.*?)\[\/url\]/ism", //$item["body"] = preg_replace("/#\[url\=([$URLSearchString]*)\](.*?)\[\/url\]/ism",
"#[url=".$a->get_baseurl()."/search?tag=$2]$2[/url]", $item["body"]); // "#[url=".$a->get_baseurl()."/search?tag=$2]$2[/url]", $item["body"]);
$item["tag"] = preg_replace("/#\[url\=([$URLSearchString]*)\](.*?)\[\/url\]/ism", //$item["tag"] = preg_replace("/#\[url\=([$URLSearchString]*)\](.*?)\[\/url\]/ism",
"#[url=".$a->get_baseurl()."/search?tag=$2]$2[/url]", $item["tag"]); // "#[url=".$a->get_baseurl()."/search?tag=$2]$2[/url]", $item["tag"]);
// mask hashtags inside of url, bookmarks and attachments to avoid urls in urls // mask hashtags inside of url, bookmarks and attachments to avoid urls in urls
$item["body"] = preg_replace_callback("/\[url\=([$URLSearchString]*)\](.*?)\[\/url\]/ism", $item["body"] = preg_replace_callback("/\[url\=([$URLSearchString]*)\](.*?)\[\/url\]/ism",