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,13 +117,14 @@ html
label(for="nsfw") include NSFW results label(for="nsfw") include NSFW results
input(type="checkbox", name="nsfw", id="nsfw", checked="checked") input(type="checkbox", name="nsfw", id="nsfw", checked="checked")
input(type="submit", value="search") input(type="submit", value="search")
.content if sidebar_data
p subscribers: #{sidebar_data.subscribers.toLocaleString()} .content
p users here right now: #{sidebar_data.active_user_count.toLocaleString()} p subscribers: #{sidebar_data.subscribers.toLocaleString()}
br p users here right now: #{sidebar_data.active_user_count.toLocaleString()}
.heading br
p.title #{sidebar_data.title} .heading
.short-description p.title #{sidebar_data.title}
!= unescape(sidebar_data.public_description_html) .short-description
.description != unescape(sidebar_data.public_description_html)
!= unescape(sidebar_data.description_html) .description
!= unescape(sidebar_data.description_html)