From fd628f3f958c345f424b90cc11e257253792cb98 Mon Sep 17 00:00:00 2001 From: Valentin Lab Date: Mon, 3 Nov 2025 09:09:36 +0100 Subject: [PATCH] fix: prevent error 500 on creation of new backoffice user --- config/gravatar.php | 46 ++++++++++++++++++++++++++++----------------- 1 file changed, 29 insertions(+), 17 deletions(-) diff --git a/config/gravatar.php b/config/gravatar.php index 39c80441..969efde8 100644 --- a/config/gravatar.php +++ b/config/gravatar.php @@ -1,23 +1,35 @@ 80, + // Default configuration group for Gravatar + 'default' => [ + // --- The default avatar size + 'size' => 80, - // --- The default avatar to display if we have no results - // (bool) false - // (string) 404 - // (string) mm: (mystery-man) a simple, cartoon-style silhouetted outline of a person (does not vary by email hash). - // (string) identicon: a geometric pattern based on an email hash. - // (string) monsterid: a generated 'monster' with different colors, faces, etc. - // (string) wavatar: generated faces with differing features and backgrounds. - // (string) retro: awesome generated, 8-bit arcade-style pixelated faces. - 'default' => 'identicon', + // --- The default avatar to display if we have no results + // (bool) false + // (string) 404 + // (string) mm: (mystery-man) a simple, cartoon-style silhouetted outline of a person (does not vary by email hash). + // (string) identicon: a geometric pattern based on an email hash. + // (string) monsterid: a generated 'monster' with different colors, faces, etc. + // (string) wavatar: generated faces with differing features and backgrounds. + // (string) retro: awesome generated, 8-bit arcade-style pixelated faces. + 'fallback' => 'identicon', - // --- Set the type of avatars we allow to show - // - g: suitable for display on all websites with any audience type. - // - pg: may contain rude gestures, provocatively dressed individuals, the lesser swear words, or mild violence. - // - r: may contain such things as harsh profanity, intense violence, nudity, or hard drug use. - // - x: may contain hardcore sexual imagery or extremely disturbing violence. - 'maxRating' => 'g', + // --- Whether to use HTTPS protocol + 'secure' => false, + + // --- Set the type of avatars we allow to show + // - g: suitable for display on all websites with any audience type. + // - pg: may contain rude gestures, provocatively dressed individuals, the lesser swear words, or mild violence. + // - r: may contain such things as harsh profanity, intense violence, nudity, or hard drug use. + // - x: may contain hardcore sexual imagery or extremely disturbing violence. + 'maximumRating' => 'g', + + // --- Force default image to always display + 'forceDefault' => false, + + // --- Optional file extension appended to URL + 'forceExtension' => 'jpg', + ] ];