diff --git a/src/Model/Contact.php b/src/Model/Contact.php index 3b12dbf73..3ec9f5ab4 100644 --- a/src/Model/Contact.php +++ b/src/Model/Contact.php @@ -1151,6 +1151,11 @@ class Contact extends BaseObject Addon::callHooks('follow', $arr); + if (empty($arr)) { + $result['message'] = L10n::t('The contact could not be added. Please check the relevant network credentials in your Settings -> Social Networks page.'); + return $result; + } + if (x($arr['contact'], 'name')) { $ret = $arr['contact']; } else {