fix an issue when sidebar data is missing

This commit is contained in:
teddit 2020-11-29 21:55:36 +01:00
parent 6b34c55109
commit 8336a3d424

View File

@ -117,6 +117,7 @@ html
label(for="nsfw") include NSFW results
input(type="checkbox", name="nsfw", id="nsfw", checked="checked")
input(type="submit", value="search")
if sidebar_data
.content
p subscribers: #{sidebar_data.subscribers.toLocaleString()}
p users here right now: #{sidebar_data.active_user_count.toLocaleString()}