The GNU-Social import is removed

This commit is contained in:
Michael 2022-12-21 22:21:22 +00:00
parent 31e8574006
commit d75cd8a00a
5 changed files with 10 additions and 17 deletions

View file

@ -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.'));