From: Michael Vogel Date: Tue, 3 Mar 2015 13:10:42 +0000 (+0100) Subject: Disabled the rewriting of hashtag links X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=4a10cb1b99ee9936a281eb5784af79f37c0b6781;p=friendica.git Disabled the rewriting of hashtag links --- diff --git a/include/items.php b/include/items.php index e56b17aec2..b698a0cd38 100644 --- a/include/items.php +++ b/include/items.php @@ -1576,11 +1576,11 @@ function item_body_set_hashtags(&$item) { $URLSearchString = "^\[\]"; // All hashtags should point to the home server - $item["body"] = preg_replace("/#\[url\=([$URLSearchString]*)\](.*?)\[\/url\]/ism", - "#[url=".$a->get_baseurl()."/search?tag=$2]$2[/url]", $item["body"]); + //$item["body"] = preg_replace("/#\[url\=([$URLSearchString]*)\](.*?)\[\/url\]/ism", + // "#[url=".$a->get_baseurl()."/search?tag=$2]$2[/url]", $item["body"]); - $item["tag"] = preg_replace("/#\[url\=([$URLSearchString]*)\](.*?)\[\/url\]/ism", - "#[url=".$a->get_baseurl()."/search?tag=$2]$2[/url]", $item["tag"]); + //$item["tag"] = preg_replace("/#\[url\=([$URLSearchString]*)\](.*?)\[\/url\]/ism", + // "#[url=".$a->get_baseurl()."/search?tag=$2]$2[/url]", $item["tag"]); // mask hashtags inside of url, bookmarks and attachments to avoid urls in urls $item["body"] = preg_replace_callback("/\[url\=([$URLSearchString]*)\](.*?)\[\/url\]/ism",