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.
master
Snakes 2022-07-22 23:25:05 -04:00
parent ed40fd9d76
commit f418bf4333
Signed by: Snakes
GPG Key ID: E745A82778055C7E
2 changed files with 2 additions and 2 deletions

View File

@ -8,7 +8,7 @@
</script>
{% endif %}
{% if v and FEATURES['AWARDS'] %}
{% if v %}
{% include "award_modal.html" %}
{% endif %}

View File

@ -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 %}