Ensure avatar photo in update routine
This commit is contained in:
parent
3eb0b795fc
commit
df96d81a0e
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue