mirror of
https://github.com/friendica/friendica
synced 2025-04-25 09:50:11 +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
|
@ -216,7 +216,7 @@ class OStatus
|
|||
|
||||
if (!empty($author["author-avatar"]) && ($author["author-avatar"] != $current['avatar'])) {
|
||||
Logger::log("Update profile picture for contact ".$contact["id"], Logger::DEBUG);
|
||||
Contact::updateAvatar($author["author-avatar"], $importer["uid"], $contact["id"]);
|
||||
Contact::updateAvatar($contact["id"], $author["author-avatar"]);
|
||||
}
|
||||
|
||||
// Ensure that we are having this contact (with uid=0)
|
||||
|
@ -237,7 +237,7 @@ class OStatus
|
|||
|
||||
// Update the avatar
|
||||
if (!empty($author["author-avatar"])) {
|
||||
Contact::updateAvatar($author["author-avatar"], 0, $cid);
|
||||
Contact::updateAvatar($cid, $author["author-avatar"]);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue