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` != ''");
|
WHERE `owner-id` = 0 AND `owner-link` != ''");
|
||||||
while ($item = dba::fetch($items)) {
|
while ($item = dba::fetch($items)) {
|
||||||
$contact = ['url' => $item['owner-link'], 'name' => $item['owner-name'],
|
$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);
|
$cid = Contact::getIdForURL($item['owner-link'], 0, false, $contact);
|
||||||
if (empty($cid)) {
|
if (empty($cid)) {
|
||||||
continue;
|
continue;
|
||||||
|
@ -212,7 +212,7 @@ function update_1260() {
|
||||||
WHERE `author-id` = 0 AND `author-link` != ''");
|
WHERE `author-id` = 0 AND `author-link` != ''");
|
||||||
while ($item = dba::fetch($items)) {
|
while ($item = dba::fetch($items)) {
|
||||||
$contact = ['url' => $item['author-link'], 'name' => $item['author-name'],
|
$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);
|
$cid = Contact::getIdForURL($item['author-link'], 0, false, $contact);
|
||||||
if (empty($cid)) {
|
if (empty($cid)) {
|
||||||
continue;
|
continue;
|
||||||
|
|
Loading…
Reference in New Issue
Block a user