mirror of
https://git.sekbaer.de/Friendica/friendica.git
synced 2025-06-11 01:24:27 +02:00
Remove the obsolete parameter $two_way from terminateFriendship methods
- Follow revokation is now done independently
This commit is contained in:
parent
1047ad7bc2
commit
c4a4473cd0
6 changed files with 18 additions and 26 deletions
|
@ -137,13 +137,11 @@ function unfollow_process(string $url)
|
|||
// NOTREACHED
|
||||
}
|
||||
|
||||
$dissolve = ($contact['rel'] == Contact::SHARING);
|
||||
|
||||
$notice_message = '';
|
||||
$return_path = $base_return_path . '/' . $contact['id'];
|
||||
|
||||
try {
|
||||
$result = Contact::terminateFriendship($owner, $contact, $dissolve);
|
||||
$result = Contact::terminateFriendship($owner, $contact);
|
||||
|
||||
if ($result === null) {
|
||||
$notice_message = DI::l10n()->t('Unfollowing is currently not supported by this contact\'s network.');
|
||||
|
@ -157,7 +155,7 @@ function unfollow_process(string $url)
|
|||
$notice_message = DI::l10n()->t('Contact was successfully unfollowed');
|
||||
}
|
||||
} catch (Exception $e) {
|
||||
DI::logger()->error($e->getMessage(), ['owner' => $owner, 'contact' => $contact, 'dissolve' => $dissolve]);
|
||||
DI::logger()->error($e->getMessage(), ['owner' => $owner, 'contact' => $contact]);
|
||||
$notice_message = DI::l10n()->t('Unable to unfollow this contact, please contact your administrator');
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue