Update posting.php

This commit is contained in:
Roman Kelesidis 2024-08-18 21:03:54 +07:00
commit 197a725ca2

View file

@ -253,7 +253,9 @@ if (!empty($bb_cfg['tor_cannot_edit']) && $post_info['allow_reg_tracker'] && $po
$anonymous_mode = $post_info['post_anonymous_mode'] ?? (bool)bf($userdata['user_opt'], 'user_opt', 'user_anonymous');
$robots_indexing = $post_info['topic_allow_robots'] ?? true;
if ($submit || $refresh) {
$anonymous_mode = !empty($_POST['anonymous']);
if (!IS_GUEST) {
$anonymous_mode = !empty($_POST['anonymous']);
}
if (IS_AM) {
$robots_indexing = !empty($_POST['robots']);
}