From 77ab2fddf575f812a0494fe945bb9cc30f115946 Mon Sep 17 00:00:00 2001 From: the-djmaze <> Date: Wed, 23 Nov 2022 10:46:12 +0100 Subject: [PATCH] Bugfix Avatars and simple empty-contact.png --- plugins/avatars/images/empty-contact.png | Bin 1881 -> 665 bytes plugins/avatars/index.php | 6 +++--- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/plugins/avatars/images/empty-contact.png b/plugins/avatars/images/empty-contact.png index b2f2071d177ee53ecfaa3e46f780e9794cf05530..4418810b82e90b24e9ffb514ec673e25c76b964e 100644 GIT binary patch literal 665 zcmV;K0%rY*P)n9y>$(Q_Z{U>NbN-usPo3X*Kh}4zwbx$%^{1<@Dyc}hSVYXidMw9mjKdJ# z;W_T2KO$a^DS(KWilf+q@qZcq0Vi=VB0gsah=^&pg+(n+y@Rz8@xIFbJr#}bK|hwY zF?}xP)a&*BMx)WT4Yi66*oajX=5NA^DhAXloPL4b2|{>h7JxF#EKZOERz<{=902nY zgdj}7%p3rd6Q=TsIRKJAf;j+&6527G1K@i?01QOL(0>Prh+$k#0B|YSLk1VBxW5d;{%imdF^DS_ zmN**`A9H#Dj<@+LzsISZwa_mwJixU!rk;t2=h*>D?Z>AU#=pX`6dU)XSftTtys6jg zuyT|y@3x4zm%E&9)_FV~#kl*poodsfLhRSD1RJm#^U>Qv_4x!hakYHRe*71Jh?s=U z*oK7(zRZU4u*^soTWxd|Ef_upTgx`cO#enN(1+8b1t~^h_;@2d&%OW9@Mb;35uA&N zuWbR8ZNqgqgaw(t*&kycuK%gvEBU(g&$WMu}tZz7oqY?3=D4Vo>DmGa&=md848u=x(L+5Eb?$*j%UUVQp zfxR`%(7Bpk)8Xm@b)ZP^ncP8ubTS^(jwODW#<%A%Q?3 zB#3}*F244xJzm4k!JZl0WF*U;nKNhBzO8++*RY2PIqLPgNhA`6%RJAM)i{@HUcxjl znM$Q*s@1C8=Q=z;G?bESxSve+$$ELze*3#!9@taAgTGyfUKDUX&~8IWT`ZoOH*emU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gyc)8_8oyP|#Z|7xw#K;w(- zhsBI~`Vv7x7;a8WXol!U+uV~@eAZ6nKJSQ(o4e*68820C`S2NuGwAP6_%KwbkRNB06+KdXIQ zyDEMoL7`0q9w-adrT5E&UmGZX2vkd~|KGeWfZgmv9AqB&yZ7TyKU+Gi2o1G!jc#6c zUC+224voVC-gn>sU|Ged8P^p$9sPC(_UgO+eXb@&9e3WBUwzx454+{%b^CE^!J>f^ zho(yJ{ukc}a54%5L!Wo2$+%C21J^;TaeANM|5}O-R&bg@;#O*LA$Ftjb|v!vQy9V& T6R?S>00000NkvXXu0mjf(mH~* diff --git a/plugins/avatars/index.php b/plugins/avatars/index.php index 24a834d8c..aa1204af5 100644 --- a/plugins/avatars/index.php +++ b/plugins/avatars/index.php @@ -25,7 +25,7 @@ class AvatarsPlugin extends \RainLoop\Plugins\AbstractPlugin { $bBimi = !empty($this->jsonParam('bimi')); $sEmail = $this->jsonParam('email'); - $aResult = static::getAvatar(\urldecode($sEmail), !empty($sEmail)); + $aResult = $this->getAvatar(\urldecode($sEmail), !empty($sEmail)); if ($aResult) { $aResult = [ 'type' => $aResult[0], @@ -38,7 +38,7 @@ class AvatarsPlugin extends \RainLoop\Plugins\AbstractPlugin // public function ServiceAvatar(...$aParts) public function ServiceAvatar(string $sServiceName, string $sBimi, string $sEmail) { - $aResult = static::getAvatar(\urldecode($sEmail), !empty($sEmail)); + $aResult = $this->getAvatar(\urldecode($sEmail), !empty($sEmail)); if ($aResult) { \header('Content-Type: '.$aResult[0]); echo $aResult[1]; @@ -59,7 +59,7 @@ class AvatarsPlugin extends \RainLoop\Plugins\AbstractPlugin ); } - private static function getAvatar(string $sEmail, bool $bBimi) : ?array + private function getAvatar(string $sEmail, bool $bBimi) : ?array { if (!\strpos($sEmail, '@')) { return null;