mirror of
https://github.com/friendica/friendica
synced 2025-04-24 00:30:11 +00:00
Pass the "force" parameter to the avatar update
This commit is contained in:
parent
e793438e0d
commit
0a43fe857c
2 changed files with 6 additions and 5 deletions
|
@ -2049,7 +2049,7 @@ class Contact
|
|||
}
|
||||
} else {
|
||||
Photo::delete(['uid' => $uid, 'contact-id' => $cid, 'photo-type' => Photo::CONTACT_AVATAR]);
|
||||
$fields = Avatar::fetchAvatarContact($contact, $avatar);
|
||||
$fields = Avatar::fetchAvatarContact($contact, $avatar, $force);
|
||||
$update = ($avatar . $fields['photo'] . $fields['thumb'] . $fields['micro'] != $contact['avatar'] . $contact['photo'] . $contact['thumb'] . $contact['micro']) || $force;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue