aboutsummaryrefslogtreecommitdiffstats
path: root/mod/item.php
diff options
context:
space:
mode:
authorfriendica <info@friendica.com>2013-02-11 00:20:14 -0800
committerfriendica <info@friendica.com>2013-02-11 00:20:14 -0800
commitba3cff6d9a505e22732c800430e34adb7e55f3a4 (patch)
treedbf1c1b59e9c131e09093f33f6b3e95155f28f63 /mod/item.php
parent191af201fb48d902a7aa22699ab882e60d439e2d (diff)
downloadvolse-hubzilla-ba3cff6d9a505e22732c800430e34adb7e55f3a4.tar.gz
volse-hubzilla-ba3cff6d9a505e22732c800430e34adb7e55f3a4.tar.bz2
volse-hubzilla-ba3cff6d9a505e22732c800430e34adb7e55f3a4.zip
progress on tag delivery
Diffstat (limited to 'mod/item.php')
-rw-r--r--mod/item.php6
1 files changed, 3 insertions, 3 deletions
diff --git a/mod/item.php b/mod/item.php
index 3cea8b22c..8298d3dc0 100644
--- a/mod/item.php
+++ b/mod/item.php
@@ -927,8 +927,8 @@ function handle_tag($a, &$body, &$inform, &$str_tags, $profile_uid, $tag) {
);
}*/
//$r is set, if someone could be selected
- if(count($r)) {
- $profile = chanlink_url($r[0]['xchan_url']);
+ if($r) {
+ $profile = $r[0]['xchan_url'];
$newname = $r[0]['xchan_name'];
//add person's id to $inform
if(strlen($inform))
@@ -941,7 +941,7 @@ function handle_tag($a, &$body, &$inform, &$str_tags, $profile_uid, $tag) {
$replaced = true;
//create profile link
$profile = str_replace(',','%2c',$profile);
- $url = chanlink_url($profile);
+ $url = $profile;
$newtag = '@[url=' . $profile . ']' . $newname . '[/url]';
$body = str_replace('@' . $name, $newtag, $body);
//append tag to str_tags