mirror of
https://github.com/the-djmaze/snappymail.git
synced 2026-07-08 22:18:28 +03:00
Bugfix: handling services images failed
This commit is contained in:
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 |
|
|
@ -10,8 +10,8 @@ class AvatarsPlugin extends \RainLoop\Plugins\AbstractPlugin
|
|||
NAME = 'Avatars',
|
||||
AUTHOR = 'SnappyMail',
|
||||
URL = 'https://snappymail.eu/',
|
||||
VERSION = '1.11',
|
||||
RELEASE = '2023-02-23',
|
||||
VERSION = '1.12',
|
||||
RELEASE = '2023-11-27',
|
||||
REQUIRED = '2.25.0',
|
||||
CATEGORY = 'Contacts',
|
||||
LICENSE = 'MIT',
|
||||
|
|
@ -37,7 +37,7 @@ class AvatarsPlugin extends \RainLoop\Plugins\AbstractPlugin
|
|||
public function JsonMessage(array &$aResponse)
|
||||
{
|
||||
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'])) {
|
||||
foreach ($aResponse['Result']['@Collection'] as &$message) {
|
||||
if ($icon = $this->JsonAvatar($message)) {
|
||||
$message['Avatar'] = $icon;
|
||||
$message['avatar'] = $icon;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue