]> git.mxchange.org Git - friendica.git/commitdiff
Don't add "redir" links on mentions
authorMichael <heluecht@pirati.ca>
Sun, 27 Aug 2017 09:56:41 +0000 (09:56 +0000)
committerMichael <heluecht@pirati.ca>
Sun, 27 Aug 2017 09:56:41 +0000 (09:56 +0000)
include/text.php

index fa26b0ef83427caa2d759542e41cd8ce57288142..9cd861fa55bee80bfe6ec3328f92ff8bfd8b42e1 100644 (file)
@@ -1331,11 +1331,10 @@ function prepare_body(&$item, $attach = false, $preview = false) {
 
                        $tag["url"] = best_link_url($item, $sp, $tag["url"]);
 
-                       if ($orig_tag != $tag["url"]) {
-                               $item['body'] = str_replace($orig_tag, $tag["url"], $item['body']);
-                       }
-
                        if ($tag["type"] == TERM_HASHTAG) {
+                               if ($orig_tag != $tag["url"]) {
+                                       $item['body'] = str_replace($orig_tag, $tag["url"], $item['body']);
+                               }
                                $hashtags[] = "#<a href=\"".$tag["url"]."\" target=\"_blank\">".$tag["term"]."</a>";
                                $prefix = "#";
                        } elseif ($tag["type"] == TERM_MENTION) {