try {
$result = ContactModel::terminateFriendship($user, $contact);
- if ($result === null) {
- throw new RuntimeException('Unfollowing is currently not supported by this contact\'s network.');
- }
-
if ($result === false) {
throw new RuntimeException('Unable to unfollow this contact, please retry in a few minutes or check the logs.');
}
/**
* Marks a contact for removal
- *
- * @return bool True, if the command was successful
*/
private function removeContact()
{
}
}
- $result = ContactModel::remove($cid);
+ ContactModel::remove($cid);
}
/**