Merge pull request #3663 from annando/no-redir
Don't add "redir" links on mentions
This commit is contained in:
commit
ccb54f3ee4
|
@ -1331,11 +1331,10 @@ function prepare_body(&$item, $attach = false, $preview = false) {
|
||||||
|
|
||||||
$tag["url"] = best_link_url($item, $sp, $tag["url"]);
|
$tag["url"] = best_link_url($item, $sp, $tag["url"]);
|
||||||
|
|
||||||
|
if ($tag["type"] == TERM_HASHTAG) {
|
||||||
if ($orig_tag != $tag["url"]) {
|
if ($orig_tag != $tag["url"]) {
|
||||||
$item['body'] = str_replace($orig_tag, $tag["url"], $item['body']);
|
$item['body'] = str_replace($orig_tag, $tag["url"], $item['body']);
|
||||||
}
|
}
|
||||||
|
|
||||||
if ($tag["type"] == TERM_HASHTAG) {
|
|
||||||
$hashtags[] = "#<a href=\"".$tag["url"]."\" target=\"_blank\">".$tag["term"]."</a>";
|
$hashtags[] = "#<a href=\"".$tag["url"]."\" target=\"_blank\">".$tag["term"]."</a>";
|
||||||
$prefix = "#";
|
$prefix = "#";
|
||||||
} elseif ($tag["type"] == TERM_MENTION) {
|
} elseif ($tag["type"] == TERM_MENTION) {
|
||||||
|
|
Loading…
Reference in New Issue
Block a user