mirror of
https://github.com/the-djmaze/snappymail.git
synced 2026-07-13 03:27:39 +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',
|
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;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue