X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=src%2FModule%2FContact%2FFollow.php;h=0b4363b4c1a5b846e1de47c32d0b65e6db94f72d;hb=d75cd8a00a88a52e6d7bf67c91ba464c81c644c1;hp=f8b88c05fc7ab35686ede286500d988a34748736;hpb=31e857400678885cedd9a2ade4acb114c66ff434;p=friendica.git diff --git a/src/Module/Contact/Follow.php b/src/Module/Contact/Follow.php index f8b88c05fc..0b4363b4c1 100644 --- a/src/Module/Contact/Follow.php +++ b/src/Module/Contact/Follow.php @@ -105,11 +105,10 @@ class Follow extends BaseModule // Don't try to add a pending contact $userContact = Contact::selectFirst(['pending'], [ - "`uid` = ? AND ((`rel` != ?) OR (`network` = ?)) AND (`nurl` = ? OR `alias` = ? OR `alias` = ?) AND `network` != ?", + "`uid` = ? AND ((`rel` != ?) OR (`network` = ?)) AND (`nurl` = ? OR `alias` = ? OR `alias` = ?)", $uid, Contact::FOLLOWER, Protocol::DFRN, Strings::normaliseLink($url), - Strings::normaliseLink($url), $url, - Protocol::STATUSNET]); + Strings::normaliseLink($url), $url]); if (!empty($userContact['pending'])) { $this->sysMessages->addNotice($this->t('You already added this contact.'));