- $result = Model\Contact::revokeFollow($this->contact);
- if ($result === true) {
- notice($this->t('Follow was successfully revoked.'));
- } elseif ($result === null) {
- notice($this->t('Follow was successfully revoked, however the remote contact won\'t be aware of this revokation.'));
- } else {
- notice($this->t('Unable to revoke follow, please try again later or contact the administrator.'));
- }
+ Model\Contact::revokeFollow($this->contact);
+
+ DI::sysmsg()->addNotice($this->t('Follow was successfully revoked.'));