]> git.mxchange.org Git - friendica.git/commitdiff
manage-selector: sql - check for same baseurl
authorrabuzarus <>
Sun, 25 Oct 2015 17:04:20 +0000 (18:04 +0100)
committerrabuzarus <>
Sun, 25 Oct 2015 17:04:20 +0000 (18:04 +0100)
mod/manage.php

index 3f553dfa6b19d363946552526b51f4db3ad89a97..37d7542fe56fe575f102aa0df803fc467a91899f 100644 (file)
@@ -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];