mirror of
https://github.com/ail-project/ail-framework.git
synced 2025-01-18 08:26:15 +00:00
chg: [blur unsafe images] blur violence and pornography-illicit-or-illegal tags + add warning message
This commit is contained in:
parent
f7c92348bb
commit
4167b36d1a
2 changed files with 5 additions and 0 deletions
|
@ -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
|
||||
|
|
|
@ -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>
|
Loading…
Add table
Reference in a new issue