Bugfix: handling services images failed

This commit is contained in:
the-djmaze 2023-11-27 17:05:30 +01:00
parent fdc21f26fc
commit 086f5ebb06
2 changed files with 4 additions and 4 deletions

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.5 KiB

After

Width:  |  Height:  |  Size: 1.6 KiB

Before After
Before After

View file

@ -10,8 +10,8 @@ class AvatarsPlugin extends \RainLoop\Plugins\AbstractPlugin
NAME = 'Avatars', NAME = 'Avatars',
AUTHOR = 'SnappyMail', AUTHOR = 'SnappyMail',
URL = 'https://snappymail.eu/', URL = 'https://snappymail.eu/',
VERSION = '1.11', VERSION = '1.12',
RELEASE = '2023-02-23', RELEASE = '2023-11-27',
REQUIRED = '2.25.0', REQUIRED = '2.25.0',
CATEGORY = 'Contacts', CATEGORY = 'Contacts',
LICENSE = 'MIT', LICENSE = 'MIT',
@ -37,7 +37,7 @@ class AvatarsPlugin extends \RainLoop\Plugins\AbstractPlugin
public function JsonMessage(array &$aResponse) public function JsonMessage(array &$aResponse)
{ {
if ($icon = $this->JsonAvatar($aResponse['Result'])) { if ($icon = $this->JsonAvatar($aResponse['Result'])) {
$aResponse['Result']['Avatar'] = $icon; $aResponse['Result']['avatar'] = $icon;
} }
} }
@ -46,7 +46,7 @@ class AvatarsPlugin extends \RainLoop\Plugins\AbstractPlugin
if (!empty($aResponse['Result']['@Collection'])) { if (!empty($aResponse['Result']['@Collection'])) {
foreach ($aResponse['Result']['@Collection'] as &$message) { foreach ($aResponse['Result']['@Collection'] as &$message) {
if ($icon = $this->JsonAvatar($message)) { if ($icon = $this->JsonAvatar($message)) {
$message['Avatar'] = $icon; $message['avatar'] = $icon;
} }
} }
} }