Don't fail if active user metrics are unavailable

This commit is contained in:
Matthew Wild
2024-04-16 20:42:21 +01:00
parent f63549ee87
commit ed6f413c18

View File

@@ -6,7 +6,7 @@
{% include "copy-snippet.html" %}
{% endblock %}
{% block content %}
{% if user_info.is_admin and metrics.users.active_1d <= 1 %}
{% if user_info.is_admin and and metrics.users and metrics.users.active_1d <= 1 %}
<aside class="box hint">
<header>Welcome to Snikket!</header>
<p>Now your Snikket instance is up and running, the next step is to invite people to join it. Family, friends, colleagues... you choose!</p>