diff --git a/include/text.php b/include/text.php index fa26b0ef83..9cd861fa55 100644 --- a/include/text.php +++ b/include/text.php @@ -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[] = "#".$tag["term"].""; $prefix = "#"; } elseif ($tag["type"] == TERM_MENTION) {