Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
src/static/img/amex@2x.png \
src/static/img/amex@3x.png \
src/static/img/appliance-pro.png \
+ src/static/img/default-avatar.jpg \
src/static/img/ipfire-tux.png \
src/static/img/lightningwirelabs-logo.svg \
src/static/img/mastercard.png \
# If there is no avatar, we serve a default image
if not avatar:
- raise tornado.web.HTTPError(404, "No avatar set for %s" % account)
+ return self.redirect("https://static.ipfire.org%s" % self.static_url("img/default-avatar.jpg"))
# Set headers about content
self.set_header("Content-Disposition", "inline; filename=\"%s.jpg\"" % who)