New avatar picture fields to better cope with changing avatars
This commit is contained in:
parent
d6c1889a20
commit
6f662b8c74
15 changed files with 143 additions and 59 deletions
|
|
@ -295,7 +295,9 @@ function _contact_update_profile($contact_id) {
|
|||
|
||||
$photos = import_profile_photo($data['photo'], local_user(), $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',
|
||||
|
|
@ -303,6 +305,7 @@ function _contact_update_profile($contact_id) {
|
|||
`avatar-date` = '%s'
|
||||
WHERE `id` = %d",
|
||||
dbesc($data["photo"]),
|
||||
dbesc($photos[0]),
|
||||
dbesc($photos[1]),
|
||||
dbesc($photos[2]),
|
||||
dbesc(datetime_convert()),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue