]> git.mxchange.org Git - friendica.git/blobdiff - src/Model/Contact.php
Use Model\Photo as much as possible
[friendica.git] / src / Model / Contact.php
index 52bcc3b54b909d9c90bd5f52058f13b2f84c9c9b..1dac5dbf41d5e7dda0a780d4efbddea00b15fc46 100644 (file)
@@ -483,7 +483,7 @@ class Contact extends BaseObject
                        'gender' => $profile['gender'], 'avatar' => $profile['photo'],
                        'contact-type' => $user['account-type'], 'xmpp' => $profile['xmpp']];
 
-               $avatar = DBA::selectFirst('photo', ['resource-id', 'type'], ['uid' => $uid, 'profile' => true]);
+               $avatar = Photo::selectFirst(['resource-id', 'type'], ['uid' => $uid, 'profile' => true]);
                if (DBA::isResult($avatar)) {
                        if ($update_avatar) {
                                $fields['avatar-date'] = DateTimeFormat::utcNow();