From e2dd38b0bcf8a24faf102c808a5590093964e094 Mon Sep 17 00:00:00 2001 From: friendica Date: Sat, 2 Feb 2013 04:38:40 -0800 Subject: ensure that stored tag terms are taken after term expansion, e.g. @"Mike Macgirvin" and not @"mike+2" --- mod/item.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/mod/item.php b/mod/item.php index 8d01a12f8..080413be9 100644 --- a/mod/item.php +++ b/mod/item.php @@ -434,7 +434,7 @@ function item_post(&$a) { 'uid' => $profile_uid, 'type' => $success['termtype'], 'otype' => TERM_OBJ_POST, - 'term' => substr($tag,1), + 'term' => $success['term'], 'url' => $success['url'] ); } @@ -853,7 +853,7 @@ function handle_tag($a, &$body, &$inform, &$str_tags, $profile_uid, $tag) { $str_tags .= ','; $str_tags .= $newtag; } - return array('replaced' => $replaced, 'termtype' => $termtype, 'url' => $url, 'contact' => $r[0]); + return array('replaced' => $replaced, 'termtype' => $termtype, 'term' => $basetag, 'url' => $url, 'contact' => $r[0]); } //is it a person tag? if(strpos($tag,'@') === 0) { @@ -965,7 +965,7 @@ function handle_tag($a, &$body, &$inform, &$str_tags, $profile_uid, $tag) { } } - return array('replaced' => $replaced, 'termtype' => $termtype, 'url' => $url, 'contact' => $r[0]); + return array('replaced' => $replaced, 'termtype' => $termtype, 'term' => $newname, 'url' => $url, 'contact' => $r[0]); } -- cgit v1.2.3