mirror of
https://github.com/friendica/friendica
synced 2025-04-24 06:30:13 +00:00
Store avatar cache fields only when needed
This commit is contained in:
parent
398e65d66b
commit
9b86f40a5f
8 changed files with 52 additions and 19 deletions
|
@ -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) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue