diff options
author | friendica <info@friendica.com> | 2013-02-02 04:38:40 -0800 |
---|---|---|
committer | friendica <info@friendica.com> | 2013-02-02 04:38:40 -0800 |
commit | e2dd38b0bcf8a24faf102c808a5590093964e094 (patch) | |
tree | 02b548bb11069164e7faf4f849f27083f671fb93 /mod | |
parent | d4a6e5e5137995b7a818601f6cf69672ace9d2f7 (diff) | |
download | volse-hubzilla-e2dd38b0bcf8a24faf102c808a5590093964e094.tar.gz volse-hubzilla-e2dd38b0bcf8a24faf102c808a5590093964e094.tar.bz2 volse-hubzilla-e2dd38b0bcf8a24faf102c808a5590093964e094.zip |
ensure that stored tag terms are taken after term expansion, e.g. @"Mike Macgirvin" and not @"mike+2"
Diffstat (limited to 'mod')
-rw-r--r-- | mod/item.php | 6 |
1 files 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]); } |