mirror of
https://github.com/friendica/friendica
synced 2025-04-26 01:10:15 +00:00
lrdd link on profile page (for salmon m/e), remove dfrn-template, qualify some contact lookups, some cleanup of app/boot
This commit is contained in:
parent
3876cab8ea
commit
0b2d85891e
4 changed files with 16 additions and 18 deletions
|
@ -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)
|
||||
);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue