X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=src%2FModel%2FContact.php;h=1c90d0c815e0eedbd7fd048ccd2ead5797630175;hb=b0d8a2fcd087c2a7c34460ced3c7334eccaa1c0a;hp=8e150b50652b8cbca8c7765ac44836473c16939a;hpb=ffc406d8195871a6580c78f1cc42ff0b7deeba02;p=friendica.git diff --git a/src/Model/Contact.php b/src/Model/Contact.php index 8e150b5065..1c90d0c815 100644 --- a/src/Model/Contact.php +++ b/src/Model/Contact.php @@ -8,13 +8,13 @@ use Friendica\BaseObject; use Friendica\Content\Pager; use Friendica\Core\Addon; use Friendica\Core\Config; +use Friendica\Core\Hook; use Friendica\Core\L10n; use Friendica\Core\Logger; use Friendica\Core\Protocol; use Friendica\Core\System; use Friendica\Core\Worker; use Friendica\Database\DBA; -use Friendica\Model\Profile; use Friendica\Network\Probe; use Friendica\Object\Image; use Friendica\Protocol\ActivityPub; @@ -1606,7 +1606,7 @@ class Contact extends BaseObject $arr = ['url' => $url, 'contact' => []]; - Addon::callHooks('follow', $arr); + Hook::callAll('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.');