mirror of
https://github.com/friendica/friendica
synced 2025-04-29 00:24:24 +02:00
Change called method names
- Add GlobalContact::getRandomUrl - Rename Contact::getIdForURL - Rename Diaspora::sendUnshare - Remove unused parameter $self in Contact::terminateFriendship
This commit is contained in:
parent
b92fc24ff0
commit
ec02af593d
48 changed files with 133 additions and 133 deletions
|
@ -120,19 +120,13 @@ class Notifier {
|
|||
|
||||
$user = $r[0];
|
||||
|
||||
$r = q("SELECT * FROM `contact` WHERE `uid` = %d AND `self` LIMIT 1", intval($item_id));
|
||||
if (!$r)
|
||||
return;
|
||||
|
||||
$self = $r[0];
|
||||
|
||||
$r = q("SELECT * FROM `contact` WHERE NOT `self` AND `uid` = %d", intval($item_id));
|
||||
if (!$r) {
|
||||
return;
|
||||
}
|
||||
require_once 'include/Contact.php';
|
||||
foreach ($r as $contact) {
|
||||
terminate_friendship($user, $self, $contact);
|
||||
Contact::terminateFriendship($user, $contact);
|
||||
}
|
||||
return;
|
||||
} elseif ($cmd === 'relocate') {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue