aboutsummaryrefslogtreecommitdiffstats
path: root/mod/item.php
diff options
context:
space:
mode:
authorFriendika <info@friendika.com>2011-09-01 18:02:08 -0700
committerFriendika <info@friendika.com>2011-09-01 18:02:08 -0700
commita33edb00424882258a90b138c634a466c92faf61 (patch)
tree6dc44fa99d818c5a7d5f641f53cd3393a2f61a2c /mod/item.php
parentef1b99aa44031662187be878485be14edf35b42b (diff)
downloadvolse-hubzilla-a33edb00424882258a90b138c634a466c92faf61.tar.gz
volse-hubzilla-a33edb00424882258a90b138c634a466c92faf61.tar.bz2
volse-hubzilla-a33edb00424882258a90b138c634a466c92faf61.zip
infrastructure for personalised @ tags (no UI/settings form yet), allow own comments through statusnet connector
Diffstat (limited to 'mod/item.php')
-rw-r--r--mod/item.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/mod/item.php b/mod/item.php
index b6ea8ff08..6ecca8f4a 100644
--- a/mod/item.php
+++ b/mod/item.php
@@ -404,7 +404,8 @@ function item_post(&$a) {
);
}
else {
- $r = q("SELECT * FROM `contact` WHERE `nick` = '%s' AND `uid` = %d LIMIT 1",
+ $r = q("SELECT * FROM `contact` WHERE `attag` = '%s' OR `nick` = '%s' AND `uid` = %d ORDER BY `attag` DESC LIMIT 1",
+ dbesc($name),
dbesc($name),
intval($profile_uid)
);