mirror of
https://github.com/friendica/friendica
synced 2025-04-27 01:50:11 +00:00
Imrpoved avatar handling when storing them/partly use of "micro"
This commit is contained in:
parent
f8a20a15d3
commit
0b1188b7fe
8 changed files with 43 additions and 24 deletions
|
@ -1404,16 +1404,8 @@ function new_follower($importer,$contact,$datarray,$item,$sharing = false) {
|
|||
dbesc($url)
|
||||
);
|
||||
if(count($r)) {
|
||||
$contact_record = $r[0];
|
||||
|
||||
$photos = import_profile_photo($photo,$importer["uid"],$contact_record["id"]);
|
||||
|
||||
q("UPDATE `contact` SET `photo` = '%s', `thumb` = '%s', `micro` = '%s' WHERE `id` = %d",
|
||||
dbesc($photos[0]),
|
||||
dbesc($photos[1]),
|
||||
dbesc($photos[2]),
|
||||
intval($contact_record["id"])
|
||||
);
|
||||
$contact_record = $r[0];
|
||||
update_contact_avatar($photo, $importer["uid"], $contact_record["id"], true);
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue