chg: [blur unsafe images] blur violence and pornography-illicit-or-illegal tags + add warning message

master
terrtia 2024-12-10 15:42:46 +01:00
parent f7c92348bb
commit 4167b36d1a
No known key found for this signature in database
GPG Key ID: 1E1B1F50D84613D0
2 changed files with 5 additions and 0 deletions

View File

@ -39,6 +39,9 @@ UNSAFE_TAGS = None
def build_unsafe_tags():
tags = set()
# violence
tags.add('dark-web:topic="violence"')
tags.add('dark-web:topic="pornography-illicit-or-illegal"')
# CE content
tags.add('dark-web:topic="pornography-child-exploitation"')
# add copine-scale tags

View File

@ -9,6 +9,7 @@
</div>
<div class="col-md-6 text-center pl-0 pt-1">
<input type="range" min="0" max="15" step="0.1" value="10" id="blur-slider" onchange="blur_images();">
<div class="text-center text-danger" id="unblur_unsafe_warning" style="display: none"><i class="fa-solid fa-warning fa-2x"></i><b> Unsafe Content</b></div>
</div>
<div class="col-md-3 text-center">
<button class="btn btn-sm btn-secondary" id="btn_unblur_img" onclick="blur_slider.val(15);blur_images();">
@ -37,5 +38,6 @@
let btn = $('#btn_unblur_img');
btn.removeClass("btn-secondary")
btn.addClass("btn-danger");
$('#unblur_unsafe_warning').show();
}
</script>