X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=mod%2Ffollow.php;h=95f95d024f728754ebcd5fbb5c174c1b3279d7ad;hb=836058c47745f502890a209dfd6efcb3596ace84;hp=b9401ee82541cfaea8d2e86194967f424e73b8cb;hpb=26eceaacbe883b7ece20c0cfb5c724c8ba1a7d99;p=friendica.git diff --git a/mod/follow.php b/mod/follow.php index b9401ee825..95f95d024f 100755 --- a/mod/follow.php +++ b/mod/follow.php @@ -14,8 +14,11 @@ function follow_content(&$a) { $uid = local_user(); $url = notags(trim($_REQUEST['url'])); - $r = q("SELECT `url` FROM `contact` WHERE `uid` = %d AND (`nurl` = '%s' OR `alias` = '%s' OR `alias` = '%s') LIMIT 1", - intval(local_user()), dbesc(normalise_link($url)), dbesc(normalise_link($url)), dbesc($url)); + $r = q("SELECT `url` FROM `contact` WHERE `uid` = %d AND + (`nurl` = '%s' OR `alias` = '%s' OR `alias` = '%s') AND + `network` != '%s' LIMIT 1", + intval(local_user()), dbesc(normalise_link($url)), + dbesc(normalise_link($url)), dbesc($url), dbesc(NETWORK_STATUSNET)); if ($r) { notice(t('You already added this contact.').EOL);