Add revenge_porn abuse category

This commit is contained in:
2024-01-26 20:14:52 +01:00
parent 62a4a6426f
commit 2decd3aa8b
3 changed files with 28 additions and 18 deletions

View File

@@ -22,6 +22,7 @@ let block_form = {
"gore", "gore",
"malware", "malware",
"doxing", "doxing",
"revenge_porn",
"none", "none",
] ]
}, { }, {

View File

@@ -552,16 +552,14 @@ const keyboard_event = evt => {
</button> </button>
{/if} {/if}
{#if view === "file"} <button
<button class="toolbar_button"
class="toolbar_button" title="Report this file as abusive"
title="Report this file as abusive" on:click={report_window.toggle}
on:click={report_window.toggle} class:button_highlight={report_visible}>
class:button_highlight={report_visible}> <i class="icon">flag</i>
<i class="icon">flag</i> <span>Report</span>
<span>Report</span> </button>
</button>
{/if}
<br/> <br/>
</div> </div>

View File

@@ -31,6 +31,12 @@ let submit = async e => {
loading = true loading = true
let files = [] let files = []
if (file.id === "") {
single_or_all = "all"
} else if (list.id === "") {
single_or_all = "single"
}
if (single_or_all === "all") { if (single_or_all === "all") {
list.files.forEach(file => { list.files.forEach(file => {
// Only report files which have not been blocked yet // Only report files which have not been blocked yet
@@ -94,35 +100,40 @@ let submit = async e => {
<input type="radio" bind:group={abuse_type} id="type_terrorism" name="abuse_type" value="terrorism"> <input type="radio" bind:group={abuse_type} id="type_terrorism" name="abuse_type" value="terrorism">
<b>Terrorism</b>: Videos, images or audio fragments showing <b>Terrorism</b>: Videos, images or audio fragments showing
or promoting the use of intentional violence to achieve or promoting the use of intentional violence to achieve
political aims. political aims
</label> </label>
<label for="type_gore"> <label for="type_gore">
<input type="radio" bind:group={abuse_type} id="type_gore" name="abuse_type" value="gore"> <input type="radio" bind:group={abuse_type} id="type_gore" name="abuse_type" value="gore">
<b>Gore</b>: Graphic and shocking videos or images depicting <b>Gore</b>: Graphic and shocking videos or images depicting
severe harm to humans (or animals). severe harm to humans (or animals)
</label> </label>
<label for="type_child_abuse"> <label for="type_child_abuse">
<input type="radio" bind:group={abuse_type} id="type_child_abuse" name="abuse_type" value="child_abuse"> <input type="radio" bind:group={abuse_type} id="type_child_abuse" name="abuse_type" value="child_abuse">
<b>Child abuse</b>: Videos or images depicting inappropriate <b>Child abuse</b>: Videos or images depicting inappropriate
touching or nudity of minors. touching or nudity of minors
</label> </label>
<label for="type_doxing"> <label for="type_doxing">
<input type="radio" bind:group={abuse_type} id="type_doxing" name="doxing" value="doxing"> <input type="radio" bind:group={abuse_type} id="type_doxing" name="doxing" value="doxing">
<b>Doxing</b>: Personally identifiable information uploaded without <b>Doxing</b>: Personally identifiable information uploaded without
the consent of the owner. the consent of the owner
</label> </label>
<label for="type_malware"> <label for="type_malware">
<input type="radio" bind:group={abuse_type} id="type_malware" name="abuse_type" value="malware"> <input type="radio" bind:group={abuse_type} id="type_malware" name="abuse_type" value="malware">
<b>Malware</b>: Software programs designed to cause harm to <b>Malware</b>: Software programs designed to cause harm to
computer systems. computer systems
</label>
<label for="type_revenge_porn">
<input type="radio" bind:group={abuse_type} id="type_revenge_porn" name="abuse_type" value="revenge_porn">
<b>Revenge porn</b>: The distribution of sexually explicit images or
videos of individuals without their consent
</label> </label>
<label for="type_copyright" style="border-bottom: none;"> <label for="type_copyright" style="border-bottom: none;">
<input type="radio" bind:group={abuse_type} id="type_copyright" name="abuse_type" value="copyright"> <input type="radio" bind:group={abuse_type} id="type_copyright" name="abuse_type" value="copyright">
<b>Copyright</b>: Protected content which is shared without constent <b>Copyright</b>: Protected content which is shared without constent
from the rightsholder. from the rightsholder
</label> </label>
{#if list.id !== ""} {#if list.id !== "" && file.id !== ""}
<h3>Report multiple files?</h3> <h3>Report multiple files?</h3>
<label for="report_single"> <label for="report_single">
<input type="radio" bind:group={single_or_all} id="report_single" name="single_or_all" value="single"> <input type="radio" bind:group={single_or_all} id="report_single" name="single_or_all" value="single">
@@ -130,7 +141,7 @@ let submit = async e => {
</label> </label>
<label for="report_all" style="border-bottom: none;"> <label for="report_all" style="border-bottom: none;">
<input type="radio" bind:group={single_or_all} id="report_all" name="single_or_all" value="all"> <input type="radio" bind:group={single_or_all} id="report_all" name="single_or_all" value="all">
Report all {list.files.length} files in this list Report all {list.files.length} files in this album
</label> </label>
{/if} {/if}