mirror of
https://github.com/friendica/friendica
synced 2025-04-19 07:10:11 +00:00
The GNU-Social import is removed
This commit is contained in:
parent
31e8574006
commit
d75cd8a00a
5 changed files with 10 additions and 17 deletions
|
@ -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.'));
|
||||
|
|
|
@ -135,13 +135,13 @@ class Acl extends BaseModule
|
|||
switch ($type) {
|
||||
case self::TYPE_MENTION_CONTACT_GROUP:
|
||||
$condition = DBA::mergeConditions($condition,
|
||||
["NOT `self` AND NOT `blocked` AND `notify` != ? AND NOT `network` IN (?, ?)", '', Protocol::OSTATUS, Protocol::STATUSNET
|
||||
["NOT `self` AND NOT `blocked` AND `notify` != ? AND `network` != ?", '', Protocol::OSTATUS
|
||||
]);
|
||||
break;
|
||||
|
||||
case self::TYPE_MENTION_CONTACT:
|
||||
$condition = DBA::mergeConditions($condition,
|
||||
["NOT `self` AND NOT `blocked` AND `notify` != ? AND `network` != ?", '', Protocol::STATUSNET
|
||||
["NOT `self` AND NOT `blocked` AND `notify` != ?", ''
|
||||
]);
|
||||
break;
|
||||
|
||||
|
|
|
@ -223,10 +223,6 @@ class PortableContacts extends BaseModule
|
|||
|
||||
if ($selectedFields['network']) {
|
||||
$entry['network'] = $contact['network'];
|
||||
if ($entry['network'] == Protocol::STATUSNET) {
|
||||
$entry['network'] = Protocol::OSTATUS;
|
||||
}
|
||||
|
||||
if (($entry['network'] == '') && ($contact['self'])) {
|
||||
$entry['network'] = Protocol::DFRN;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue