infrastructure for personalised @ tags (no UI/settings form yet), allow own comments through statusnet connector

This commit is contained in:
Friendika 2011-09-01 18:02:08 -07:00
commit a33edb0042
7 changed files with 19 additions and 9 deletions

View file

@ -414,7 +414,8 @@ function photos_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($page_owner_uid)
);