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
|
@ -1703,6 +1703,10 @@ class Item
|
|||
'photo' => $item['owner-avatar'], 'network' => $item['network']];
|
||||
$item['owner-id'] = ($item['owner-id'] ?? 0) ?: Contact::getIdForURL($item['owner-link'], 0, null, $default);
|
||||
|
||||
// Ensure that there is an avatar cache
|
||||
Contact::checkAvatarCache($item['author-id']);
|
||||
Contact::checkAvatarCache($item['owner-id']);
|
||||
|
||||
// The contact-id should be set before "self::insert" was called - but there seems to be issues sometimes
|
||||
$item["contact-id"] = self::contactId($item);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue