Revert "Disable fartmode on non-rDrama sites."

This reverts commit da27b16c39.
master
Aevann1 2022-07-08 20:10:42 +02:00
parent ad1273995d
commit 14d2845f93
2 changed files with 1 additions and 3 deletions

View File

@ -84,12 +84,10 @@
<label class="custom-control-label" for="bots">Bots</label>
</div>
{% if SITE_NAME == 'rDrama' %}
<div class="custom-control custom-switch">
<input autocomplete="off" type="checkbox" class="custom-control-input" id="Fart mode" {% if site_settings['Fart mode'] %}checked{% endif %} onchange="post_toast(this,'/admin/site_settings/Fart mode');">
<label class="custom-control-label" for="Fart mode">Fart mode</label>
</div>
{% endif %}
<div class="custom-control custom-switch">
<input autocomplete="off" type="checkbox" class="custom-control-input" id="Read-only mode" {% if site_settings['Read-only mode'] %}checked{% endif %} onchange="post_toast(this,'/admin/site_settings/Read-only mode');">

View File

@ -45,7 +45,7 @@
</script>
{% endif %}
{% if fart and not (v and v.has_badge(128)) and SITE_NAME == 'rDrama' %}
{% if fart and not (v and v.has_badge(128)) %}
<script>
fart = Math.floor(Math.random() * 5) + 1
let audio = new Audio(`/assets/images/${fart}.webp`);