spamnoticer: include marking body as spam when parsing
This commit is contained in:
parent
a56f585740
commit
824fd148c9
|
@ -1773,8 +1773,9 @@ function parse_spamnoticer_content_fields($postData, $post): BanFormFieldsForSp
|
||||||
$ban = isset($postData['checkbox-ban']);
|
$ban = isset($postData['checkbox-ban']);
|
||||||
$delete = isset($postData['checkbox-delete']);
|
$delete = isset($postData['checkbox-delete']);
|
||||||
$ban_content = isset($postData['checkbox-ban-content']);
|
$ban_content = isset($postData['checkbox-ban-content']);
|
||||||
|
$text_is_spam = isset($postData['text_is_spam']);
|
||||||
|
|
||||||
return new BanFormFieldsForSpamnoticer($ban, $delete, $ban_content, $files_info);
|
return new BanFormFieldsForSpamnoticer($ban, $delete, $ban_content, $text_is_spam, $files_info);
|
||||||
}
|
}
|
||||||
|
|
||||||
function mod_ban_post($board, $delete, $post_num, $token = false) {
|
function mod_ban_post($board, $delete, $post_num, $token = false) {
|
||||||
|
|
|
@ -34,18 +34,21 @@ class BanFormFieldsForSpamnoticer {
|
||||||
public bool $ban;
|
public bool $ban;
|
||||||
public bool $delete;
|
public bool $delete;
|
||||||
public bool $ban_content;
|
public bool $ban_content;
|
||||||
|
public bool $text_is_spam;
|
||||||
public array $files_info;
|
public array $files_info;
|
||||||
|
|
||||||
public function __construct(
|
public function __construct(
|
||||||
bool $ban,
|
bool $ban,
|
||||||
bool $delete,
|
bool $delete,
|
||||||
bool $ban_content,
|
bool $ban_content,
|
||||||
|
bool $text_is_spam,
|
||||||
array $files_info, // Array of SpamNoticerBanFileInfo
|
array $files_info, // Array of SpamNoticerBanFileInfo
|
||||||
) {
|
) {
|
||||||
$this->ban = $ban;
|
$this->ban = $ban;
|
||||||
$this->delete = $delete;
|
$this->delete = $delete;
|
||||||
$this->ban_content = $ban_content;
|
$this->ban_content = $ban_content;
|
||||||
$this->files_info = $files_info;
|
$this->files_info = $files_info;
|
||||||
|
$this->text_is_spam = $text_is_spam;
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -22,7 +22,7 @@
|
||||||
}
|
}
|
||||||
|
|
||||||
.ban-form-action--input {
|
.ban-form-action--input {
|
||||||
margin: 1em;
|
margin: 1em .5em;
|
||||||
}
|
}
|
||||||
|
|
||||||
.ban-form-action--label {
|
.ban-form-action--label {
|
||||||
|
|
Loading…
Reference in New Issue