From 68c981d6e0fb62f6e7fd533a07e1c65a19bb274c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Aur=C3=A9lien=20Bompard?= Date: Mon, 22 Apr 2024 12:23:28 +0200 Subject: [PATCH] Move to the 'retro' avatar default MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Aurélien Bompard --- tahrir/utils.py | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/tahrir/utils.py b/tahrir/utils.py index 257253b..f958fc0 100644 --- a/tahrir/utils.py +++ b/tahrir/utils.py @@ -55,15 +55,11 @@ def generate_badge_yaml(postdict): @cache.cache_on_arguments() def get_avatar(email: str, size): request = pyramid.threadlocal.get_current_request() - theme_name = request.registry.settings.get("tahrir.theme_name", "tahrir") - absolute_default = request.registry.settings.get( - "tahrir.default_avatar", - request.static_url(f"{theme_name}:static/img/badger_avatar.png"), - ) + default = request.registry.settings.get("tahrir.default_avatar", "retro") query = { "s": size, - "d": absolute_default, + "d": default, } if size == "responsive":