aboutsummaryrefslogtreecommitdiffstats
path: root/mod/dfrn_request.php
diff options
context:
space:
mode:
authorMike Macgirvin <mike@macgirvin.com>2010-10-19 15:51:56 -0700
committerMike Macgirvin <mike@macgirvin.com>2010-10-19 15:51:56 -0700
commit0b2d85891e651bab2c3ddd0c7396d557a052dd18 (patch)
treedb2529b11d6eafd20e76442e8a5fbc9cc41f1946 /mod/dfrn_request.php
parent3876cab8eac1364e7074e8da9aeb83badb3b65b3 (diff)
downloadvolse-hubzilla-0b2d85891e651bab2c3ddd0c7396d557a052dd18.tar.gz
volse-hubzilla-0b2d85891e651bab2c3ddd0c7396d557a052dd18.tar.bz2
volse-hubzilla-0b2d85891e651bab2c3ddd0c7396d557a052dd18.zip
lrdd link on profile page (for salmon m/e), remove dfrn-template, qualify some contact lookups, some cleanup of app/boot
Diffstat (limited to 'mod/dfrn_request.php')
-rw-r--r--mod/dfrn_request.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/mod/dfrn_request.php b/mod/dfrn_request.php
index 7a3060ff4..6e8171d50 100644
--- a/mod/dfrn_request.php
+++ b/mod/dfrn_request.php
@@ -44,7 +44,7 @@ function dfrn_request_post(&$a) {
if(x($dfrn_url)) {
- $r = q("SELECT * FROM `contact` WHERE `uid` = %d AND `url` = '%s' LIMIT 1",
+ $r = q("SELECT * FROM `contact` WHERE `uid` = %d AND `url` = '%s' AND `self` = 0 LIMIT 1",
intval(local_user()),
dbesc($dfrn_url)
);
@@ -198,7 +198,7 @@ function dfrn_request_post(&$a) {
if($network === 'dfrn') {
- $ret = q("SELECT * FROM `contact` WHERE `uid` = %d AND `url` = '%s' LIMIT 1",
+ $ret = q("SELECT * FROM `contact` WHERE `uid` = %d AND `url` = '%s' AND `self` = 0 LIMIT 1",
intval($uid),
dbesc($url)
);