aboutsummaryrefslogtreecommitdiffstats
path: root/include/items.php
diff options
context:
space:
mode:
authorfriendica <info@friendica.com>2014-02-06 13:54:39 -0800
committerfriendica <info@friendica.com>2014-02-06 13:54:39 -0800
commit3e677ec53de7517c249114dd30539141fbde85e3 (patch)
tree0e715f778ccda1260176a7c4db60494670eb3f55 /include/items.php
parentf9381ed746009348462f4f96ed397fabab4e172e (diff)
downloadvolse-hubzilla-3e677ec53de7517c249114dd30539141fbde85e3.tar.gz
volse-hubzilla-3e677ec53de7517c249114dd30539141fbde85e3.tar.bz2
volse-hubzilla-3e677ec53de7517c249114dd30539141fbde85e3.zip
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.
Diffstat (limited to 'include/items.php')
-rwxr-xr-xinclude/items.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/items.php b/include/items.php
index b7919ade6..1a26198da 100755
--- a/include/items.php
+++ b/include/items.php
@@ -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];
}