Skip to content

Commit

Permalink
Move to the 'retro' avatar default
Browse files Browse the repository at this point in the history
Signed-off-by: Aurélien Bompard <[email protected]>
  • Loading branch information
abompard committed Apr 22, 2024
1 parent 2132dbf commit 68c981d
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions tahrir/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -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":
Expand Down

0 comments on commit 68c981d

Please sign in to comment.