Merge pull request #4038 from annando/second-bugfix-4036

Second bugfix to PR 4036
This commit is contained in:
Michael Vogel 2017-12-08 07:19:20 +01:00 committed by GitHub
commit 23ca4f92af
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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(