mirror of
https://github.com/friendica/friendica
synced 2025-04-22 23:50: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
|
@ -189,7 +189,7 @@ function dfrn_request_post(App $a)
|
|||
Group::addMember(User::getDefaultGroup(local_user(), $r[0]["network"]), $r[0]['id']);
|
||||
|
||||
if (isset($photo)) {
|
||||
Contact::updateAvatar($photo, local_user(), $r[0]["id"], true);
|
||||
Contact::updateAvatar($r[0]["id"], $photo, true);
|
||||
}
|
||||
|
||||
$forward_path = "contact/" . $r[0]['id'];
|
||||
|
@ -420,7 +420,7 @@ function dfrn_request_post(App $a)
|
|||
);
|
||||
if (DBA::isResult($r)) {
|
||||
$contact_record = $r[0];
|
||||
Contact::updateAvatar($photo, $uid, $contact_record["id"], true);
|
||||
Contact::updateAvatar($contact_record["id"], $photo, true);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue