From 4a10cb1b99ee9936a281eb5784af79f37c0b6781 Mon Sep 17 00:00:00 2001 From: Michael Vogel Date: Tue, 3 Mar 2015 14:10:42 +0100 Subject: [PATCH] Disabled the rewriting of hashtag links --- include/items.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) 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",