Permalink
Browse files

Merge pull request #263 from fedora-infra/feature/default-avatar

Allow admin to set default avatar explicitly.
  • Loading branch information...
ralphbean committed Feb 26, 2014
2 parents af7ab74 + 5aa1927 commit 640ee213f60efdbd285f5463e20e5aaf8a85611f
Showing with 3 additions and 3 deletions.
  1. +3 −3 tahrir/utils.py
View
@@ -90,9 +90,9 @@ def make_avatar_method(cache):
@cache.cache_on_arguments()
def _avatar_function(email, size):
request = pyramid.threadlocal.get_current_request()
- theme_name = request.registry.settings.get('tahrir.theme_name', 'tahrir')
- absolute_default = request.static_url(
- '%s:static/img/badger_avatar.png' % theme_name)
+ absolute_default = request.registry.settings.get(
+ 'tahrir.default_avatar',
+ 'https://badges.fedoraproject.org/static/img/badger_avatar.png')
query = {
's': size,

0 comments on commit 640ee21

Please sign in to comment.