From 87c559d60504ed7069f1fdb4784303437f11eb8f Mon Sep 17 00:00:00 2001 From: rabuzarus <> Date: Sun, 25 Oct 2015 18:04:20 +0100 Subject: [PATCH] manage-selector: sql - check for same baseurl --- mod/manage.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/mod/manage.php b/mod/manage.php index 3f553dfa6b..37d7542fe5 100644 --- a/mod/manage.php +++ b/mod/manage.php @@ -101,10 +101,12 @@ function manage_content(&$a) { //getting additinal information for each identity foreach ($identities as $key=>$id) { - $thumb = q("SELECT `thumb` FROM `contact` WHERE `uid` = %d AND `name` = '%s' AND `nick` = '%s' AND (`network` = '%s' OR `self` = 1)", + $thumb = q("SELECT `thumb` FROM `contact` WHERE `uid` = %d AND `name` = '%s' AND `nick` = '%s' AND `nurl` = '%s' + AND (`network` = '%s' OR `self` = 1)", intval($a->user['uid']), dbesc($id['username']), dbesc($id['nickname']), + dbesc(normalise_link($a->get_baseurl() . '/profile/' . $id['nickname'])), dbesc(NETWORK_DFRN) ); $identities[$key][thumb] = $thumb[0][thumb]; -- 2.39.5