mirror of
https://github.com/friendica/friendica
synced 2025-04-26 15:50:10 +00:00
add micro profile photo
This commit is contained in:
parent
71ae08d506
commit
b94cb8d234
12 changed files with 77 additions and 13 deletions
|
@ -792,6 +792,10 @@ function consume_feed($xml,$importer,$contact, &$hub) {
|
|||
|
||||
$img->scaleImage(80);
|
||||
$r = $img->store($contact['uid'], $contact['id'], $hash, basename($photo_url), t('Contact Photos') , 5);
|
||||
|
||||
$img->scaleImage(48);
|
||||
$r = $img->store($contact['uid'], $contact['id'], $hash, basename($photo_url), t('Contact Photos') , 6);
|
||||
|
||||
if($r)
|
||||
q("UPDATE `contact` SET `avatar-date` = '%s' WHERE `uid` = %d AND `id` = %d LIMIT 1",
|
||||
dbesc(datetime_convert()),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue