aboutsummaryrefslogtreecommitdiffstats
path: root/mod
diff options
context:
space:
mode:
authorFriendika <info@friendika.com>2011-11-05 21:43:58 -0700
committerFriendika <info@friendika.com>2011-11-05 21:43:58 -0700
commitcc1c015f20061afb05f378062aa6286d3e5628d3 (patch)
tree8497eb5106b8e0f482e3a5acee186852c4fa50d6 /mod
parentf07c0b2cfb20018e3a0cab1c6611f0d8b68278f5 (diff)
downloadvolse-hubzilla-cc1c015f20061afb05f378062aa6286d3e5628d3.tar.gz
volse-hubzilla-cc1c015f20061afb05f378062aa6286d3e5628d3.tar.bz2
volse-hubzilla-cc1c015f20061afb05f378062aa6286d3e5628d3.zip
@ completion is a bit too greedy
Diffstat (limited to 'mod')
-rw-r--r--mod/item.php6
1 files changed, 4 insertions, 2 deletions
diff --git a/mod/item.php b/mod/item.php
index a03a85775..ee3bdca99 100644
--- a/mod/item.php
+++ b/mod/item.php
@@ -415,9 +415,11 @@ function item_post(&$a) {
$newname = $name;
$alias = '';
$tagcid = 0;
- if(strrpos($newname,'+'))
+ if(strrpos($newname,'+')) {
$tagcid = intval(substr($newname,strrpos($newname,'+') + 1));
-
+ if(strpos($name,' '))
+ $name = substr($name,0,strpos($name,' '));
+ }
if($tagcid) {
$r = q("SELECT * FROM `contact` WHERE `id` = %d AND `uid` = %d LIMIT 1",
intval($tagcid),