]> git.mxchange.org Git - friendica.git/commitdiff
Disabled the rewriting of hashtag links
authorMichael Vogel <icarus@dabo.de>
Tue, 3 Mar 2015 13:10:42 +0000 (14:10 +0100)
committerMichael Vogel <icarus@dabo.de>
Tue, 3 Mar 2015 13:10:42 +0000 (14:10 +0100)
include/items.php

index e56b17aec2b2bf20cf63ee419b63909bffabc19c..b698a0cd381f7a10e88dffc7281f5e35022132b8 100644 (file)
@@ -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",