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

@ -87,7 +87,7 @@ class Advanced extends BaseModule
if ($photo) {
DI::logger()->notice('Updating photo.', ['photo' => $photo]);
Model\Contact::updateAvatar($photo, local_user(), $contact['id'], true);
Model\Contact::updateAvatar($contact['id'], $photo, true);
}
if (!$r) {