mirror of
https://github.com/friendica/friendica
synced 2025-04-27 08:30:10 +00:00
We now change relationships not only for OStatus contacts
This commit is contained in:
parent
59dd353464
commit
67fa6aa809
2 changed files with 7 additions and 3 deletions
|
@ -185,8 +185,6 @@ class Contact extends BaseObject
|
|||
}
|
||||
} elseif ($contact['network'] == NETWORK_DIASPORA) {
|
||||
Diaspora::sendUnshare($user, $contact);
|
||||
//} elseif ($contact['network'] === NETWORK_DFRN) {
|
||||
// DFRN::deliver($user, $contact, 'placeholder', 1);
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -1377,7 +1375,7 @@ class Contact extends BaseObject
|
|||
}
|
||||
|
||||
if (is_array($contact)) {
|
||||
if (($contact['network'] == NETWORK_OSTATUS && $contact['rel'] == CONTACT_IS_SHARING)
|
||||
if (($contact['rel'] == CONTACT_IS_SHARING)
|
||||
|| ($sharing && $contact['rel'] == CONTACT_IS_FOLLOWER)) {
|
||||
dba::update('contact', ['rel' => CONTACT_IS_FRIEND, 'writable' => true],
|
||||
['id' => $contact['id'], 'uid' => $importer['uid']]);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue