- $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.');
- }