]> git.mxchange.org Git - friendica.git/commitdiff
Ensure avatar photo in update routine
authorMichael <heluecht@pirati.ca>
Wed, 9 May 2018 07:09:47 +0000 (07:09 +0000)
committerMichael <heluecht@pirati.ca>
Wed, 9 May 2018 07:09:47 +0000 (07:09 +0000)
update.php

index 1a6bcdf7b24b7e0d1681935f69c7a4d9c0ebdf71..e85641007dad61f5d1cb29bfd47fe56ab7d28ab0 100644 (file)
@@ -196,7 +196,7 @@ function update_1260() {
                WHERE `owner-id` = 0 AND `owner-link` != ''");
        while ($item = dba::fetch($items)) {
                $contact = ['url' => $item['owner-link'], 'name' => $item['owner-name'],
-                       'avatar' => $item['owner-avatar'], 'network' => $item['network']];
+                       'photo' => $item['owner-avatar'], 'network' => $item['network']];
                $cid = Contact::getIdForURL($item['owner-link'], 0, false, $contact);
                if (empty($cid)) {
                        continue;
@@ -212,7 +212,7 @@ function update_1260() {
                WHERE `author-id` = 0 AND `author-link` != ''");
        while ($item = dba::fetch($items)) {
                $contact = ['url' => $item['author-link'], 'name' => $item['author-name'],
-                       'avatar' => $item['author-avatar'], 'network' => $item['network']];
+                       'photo' => $item['author-avatar'], 'network' => $item['network']];
                $cid = Contact::getIdForURL($item['author-link'], 0, false, $contact);
                if (empty($cid)) {
                        continue;