Fix gravatar offline mode

This commit is contained in:
Roei Ganor 2020-06-24 11:17:45 +03:00
parent 4e63f8380b
commit 0f9a5f8652
2 changed files with 1 additions and 1 deletions

0
FETCH_HEAD Normal file
View File

View File

@ -29,7 +29,7 @@
</head>
<body class="hold-transition skin-blue sidebar-mini {% if not SETTING.get('fullscreen_layout') %}layout-boxed{% endif %}">
{% if OFFLINE_MODE %}
{% set gravatar_url = "{{ url_for('static', filename='img/gravatar.png') }}" %}
{% set gravatar_url = url_for('static', filename='img/gravatar.png') %}
{% elif current_user.email is defined %}
{% set gravatar_url = current_user.email|email_to_gravatar_url(size=80) %}
{% endif %}