From f418bf4333260908f95168e9086032cf18152499 Mon Sep 17 00:00:00 2001 From: TLSM Date: Fri, 22 Jul 2022 23:25:05 -0400 Subject: [PATCH] Fix voting when FEATURES['AWARDS'] false. Apparently we stick the voting javascript in awards_modal.js, which is included with awards_modal.html. While this makes sense as a proxy for logged-in post-actions, it unfortunately means disabling inclusion of the (otherwise unused) modal templates when FEATURES['AWARDS'] is disabled breaks other things. --- files/templates/comments.html | 2 +- files/templates/submission_listing.html | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/files/templates/comments.html b/files/templates/comments.html index 94bf925067..6578775e44 100644 --- a/files/templates/comments.html +++ b/files/templates/comments.html @@ -8,7 +8,7 @@ {% endif %} - {% if v and FEATURES['AWARDS'] %} + {% if v %} {% include "award_modal.html" %} {% endif %} diff --git a/files/templates/submission_listing.html b/files/templates/submission_listing.html index 478dfb5158..c72c9dec7a 100644 --- a/files/templates/submission_listing.html +++ b/files/templates/submission_listing.html @@ -1,7 +1,7 @@ {%- from 'util/assetcache.html' import asset, asset_siteimg with context -%} {%- import 'util/helpers.html' as help -%} -{% if v and FEATURES['AWARDS'] %} +{% if v %} {% include "award_modal.html" %} {% endif %}