diff options
author | friendica <info@friendica.com> | 2013-01-23 01:33:03 -0800 |
---|---|---|
committer | friendica <info@friendica.com> | 2013-01-23 01:33:03 -0800 |
commit | a10ff18f0edf7b795f4f9899b83b3adf27ba4900 (patch) | |
tree | aab96d322ab183ce89c9719849fe011b3869c846 | |
parent | 2c1ba66016924f6efb0832ede6041cd2d7d67a19 (diff) | |
download | volse-hubzilla-a10ff18f0edf7b795f4f9899b83b3adf27ba4900.tar.gz volse-hubzilla-a10ff18f0edf7b795f4f9899b83b3adf27ba4900.tar.bz2 volse-hubzilla-a10ff18f0edf7b795f4f9899b83b3adf27ba4900.zip |
@tags sorta work, but we might have an issue with sending zids in @tags
-rw-r--r-- | mod/item.php | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/mod/item.php b/mod/item.php index 93f859982..48715a0f4 100644 --- a/mod/item.php +++ b/mod/item.php @@ -890,7 +890,6 @@ function handle_tag($a, &$body, &$inform, &$str_tags, $profile_uid, $tag) { } if($tagcid) { //if there was an id - //select contact with that id from the logged in user's contact list $r = q("SELECT * FROM abook left join xchan on abook_xchan = xchan_hash WHERE abook_id = %d AND abook_channel = %d LIMIT 1", @@ -936,7 +935,7 @@ function handle_tag($a, &$body, &$inform, &$str_tags, $profile_uid, $tag) { }*/ //$r is set, if someone could be selected if(count($r)) { - $profile = $r[0]['xchan_url']; + $profile = chanlink_url($r[0]['xchan_url']); $newname = $r[0]['xchan_name']; //add person's id to $inform if(strlen($inform)) @@ -949,7 +948,7 @@ function handle_tag($a, &$body, &$inform, &$str_tags, $profile_uid, $tag) { $replaced = true; //create profile link $profile = str_replace(',','%2c',$profile); - $url = $profile; + $url = chanlink_url($profile); $newtag = '@[url=' . $profile . ']' . $newname . '[/url]'; $body = str_replace('@' . $name, $newtag, $body); //append tag to str_tags |