From: Michael Date: Fri, 8 Dec 2017 06:15:06 +0000 (+0000) Subject: Second bugfix to PR 4036 X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=0a946587b567c32b267aad11cefc4656efb921b1;p=friendica.git Second bugfix to PR 4036 --- diff --git a/src/Model/Contact.php b/src/Model/Contact.php index 3708603ba3..e790fd4843 100644 --- a/src/Model/Contact.php +++ b/src/Model/Contact.php @@ -12,7 +12,7 @@ use Friendica\Core\System; use Friendica\Core\Worker; use Friendica\Database\DBM; use Friendica\Network\Probe; -use Friendica\Object\Image; +use Friendica\Model\Photo; use Friendica\Protocol\Diaspora; use Friendica\Protocol\DFRN; use Friendica\Protocol\OStatus; @@ -921,7 +921,7 @@ class Contact extends BaseObject } if (($r["avatar"] != $avatar) || $force) { - $photos = Image::importProfilePhoto($avatar, $uid, $cid, true); + $photos = Photo::importProfilePhoto($avatar, $uid, $cid, true); if ($photos) { dba::update(