mirror of
https://github.com/friendica/friendica
synced 2025-05-06 20:24:11 +02:00
Ensure to reset the avatar paths when deleting avatar cache
This commit is contained in:
parent
a7d0355849
commit
3e3f2555dc
2 changed files with 8 additions and 3 deletions
|
@ -2252,7 +2252,9 @@ class Contact
|
|||
}
|
||||
|
||||
if (in_array($contact['network'], [Protocol::FEED, Protocol::MAIL]) || $cache_avatar) {
|
||||
Avatar::deleteCache($contact);
|
||||
if (Avatar::deleteCache($contact)) {
|
||||
$force = true;
|
||||
}
|
||||
|
||||
if ($default_avatar && Proxy::isLocalImage($avatar)) {
|
||||
$fields = ['avatar' => $avatar, 'avatar-date' => DateTimeFormat::utcNow(),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue