1
0
Fork 0

New avatar picture fields to better cope with changing avatars

This commit is contained in:
Michael Vogel 2016-01-28 01:26:19 +01:00
commit 6f662b8c74
15 changed files with 143 additions and 59 deletions

View file

@ -266,13 +266,16 @@ function new_contact($uid,$url,$interactive = false) {
$photos = import_profile_photo($ret['photo'],$uid,$contact_id);
$r = q("UPDATE `contact` SET `photo` = '%s',
$r = q("UPDATE `contact` SET
`avatar` = '%s',
`photo` = '%s',
`thumb` = '%s',
`micro` = '%s',
`name-date` = '%s',
`uri-date` = '%s',
`avatar-date` = '%s'
WHERE `id` = %d",
dbesc($ret['photo']),
dbesc($photos[0]),
dbesc($photos[1]),
dbesc($photos[2]),