Store avatar cache fields only when needed

This commit is contained in:
Michael 2020-07-25 11:48:52 +00:00
parent 398e65d66b
commit 9b86f40a5f
8 changed files with 52 additions and 19 deletions

View file

@ -2410,7 +2410,7 @@ class Diaspora
$image_url = "http://".$handle_parts[1].$image_url;
}
Contact::updateAvatar($image_url, $importer["uid"], $contact["id"]);
Contact::updateAvatar($contact["id"], $image_url);
// Generic birthday. We don't know the timezone. The year is irrelevant.