]> git.mxchange.org Git - friendica.git/blobdiff - mod/dfrn_confirm.php
Remove obsolete mod/network and mod/update_network files
[friendica.git] / mod / dfrn_confirm.php
index 668c6d2e274bee42ca7b96247b2f5fd9e39d9268..e909428d1e862e738d3cfd8ed1146b7887ed3d72 100644 (file)
@@ -304,7 +304,7 @@ function dfrn_confirm_post(App $a, $handsfree = null)
                 *
                 * We will also update the contact record with the nature and scope of the relationship.
                 */
-               Contact::updateAvatar($contact['photo'], $uid, $contact_id);
+               Contact::updateAvatar($contact_id, $contact['photo']);
 
                Logger::log('dfrn_confirm: confirm - imported photos');
 
@@ -481,10 +481,10 @@ function dfrn_confirm_post(App $a, $handsfree = null)
                if (DBA::isResult($contact)) {
                        $photo = $contact['photo'];
                } else {
-                       $photo = DI::baseUrl() . '/images/person-300.jpg';
+                       $photo = DI::baseUrl() . Contact::DEFAULT_AVATAR_PHOTO;
                }
 
-               Contact::updateAvatar($photo, $local_uid, $dfrn_record);
+               Contact::updateAvatar($dfrn_record, $photo);
 
                Logger::log('dfrn_confirm: request - photos imported');