add bookmark tag to naked links if they're red sites. We can do this because red links are linkified when the post is submitted. Can't do this for other naked links because they only get linkified during display and won't have a taxonomy object attached to the message.

This commit is contained in:
friendica 2014-02-06 13:54:39 -08:00
parent f9381ed746
commit 3e677ec53d

View File

@ -160,7 +160,7 @@ function red_zrl_callback($matches) {
$zrl = true;
}
if($zrl)
return $matches[1] . '[zrl=' . $matches[2] . ']' . $matches[2] . '[/zrl]';
return $matches[1] . '#^[zrl=' . $matches[2] . ']' . $matches[2] . '[/zrl]';
return $matches[0];
}