Avatars plugin added other identicon types (needs config settings)

This commit is contained in:
the-djmaze 2022-11-30 17:03:07 +01:00
parent 9df052a435
commit 9502fa3f5a
4 changed files with 97 additions and 23 deletions

View file

@ -19,7 +19,9 @@ class AvatarsPlugin extends \RainLoop\Plugins\AbstractPlugin
$this->addJs('avatars.js');
$this->addJsonHook('Avatar', 'DoAvatar');
$this->addPartHook('Avatar', 'ServiceAvatar');
$this->Config()->Get('plugin', 'identicon', false) && $this->addJs('jdenticon.js');
// $this->Config()->Get('plugin', 'identicon', false) && $this->addJs('jdenticon.js');
// GitHub-style
$this->Config()->Get('plugin', 'identicon', false) && $this->addJs('identicon.js');
// https://github.com/the-djmaze/snappymail/issues/714
$this->Config()->Get('plugin', 'delay', true) || $this->addHook('filter.json-response', 'FilterJsonResponse');
}