1
0
mirror of https://github.com/vichan-devel/vichan.git synced 2025-02-26 15:01:37 +01:00

post.php: pass Context to filters

This commit is contained in:
Zankaria 2025-02-21 12:29:06 +01:00
parent e7c96a3456
commit 4eeabe9d28

View File

@ -1062,7 +1062,7 @@ if (isset($_POST['delete'])) {
if (!hasPermission($config['mod']['bypass_filters'], $board['uri']) && !$dropped_post) {
require_once 'inc/filters.php';
do_filters($post);
do_filters($context, $post);
}
if ($post['has_file']) {
@ -1245,7 +1245,7 @@ if (isset($_POST['delete'])) {
// Do filters again if OCRing
if ($config['tesseract_ocr'] && !hasPermission($config['mod']['bypass_filters'], $board['uri']) && !$dropped_post) {
do_filters($post);
do_filters($context, $post);
}
if (!hasPermission($config['mod']['postunoriginal'], $board['uri']) && $config['robot_enable'] && checkRobot($post['body_nomarkup']) && !$dropped_post) {