X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=include%2Ffollow.php;h=14b9c68ed59fd3476154a2ec367ab84d63adde71;hb=755f6e8cc1ceb5fab0c0f63deb3ca7048d1ea48d;hp=7e8b25d79755dbbad1afe346d6cf56d6701e3bf8;hpb=0d23a56706765b885d98e9f664f65f837e4950ea;p=friendica.git diff --git a/include/follow.php b/include/follow.php index 7e8b25d797..14b9c68ed5 100644 --- a/include/follow.php +++ b/include/follow.php @@ -8,13 +8,13 @@ use Friendica\Core\System; use Friendica\Core\Worker; use Friendica\Database\DBM; use Friendica\Network\Probe; +use Friendica\Object\Contact; use Friendica\Protocol\Diaspora; use Friendica\Protocol\OStatus; use Friendica\Protocol\PortableContact; +use Friendica\Protocol\Salmon; require_once 'include/group.php'; -require_once 'include/salmon.php'; -require_once 'include/Photo.php'; function update_contact($id) { /* @@ -250,7 +250,7 @@ function new_contact($uid, $url, $interactive = false, $network = '') { } // Update the avatar - update_contact_avatar($ret['photo'],$uid,$contact_id); + Contact::updateAvatar($ret['photo'], $uid, $contact_id); // pull feed and consume it, which should subscribe to the hub. @@ -268,7 +268,7 @@ function new_contact($uid, $url, $interactive = false, $network = '') { $item['verb'] = ACTIVITY_FOLLOW; $item['follow'] = $contact["url"]; $slap = OStatus::salmon($item, $r[0]); - slapper($r[0], $contact['notify'], $slap); + Salmon::slapper($r[0], $contact['notify'], $slap); } if ($contact['network'] == NETWORK_DIASPORA) {