|
@ -1439,7 +1439,7 @@ function deletePostShadow($id, $error_if_doesnt_exist=true, $rebuild_after=true) |
|
|
global $board, $config; |
|
|
global $board, $config; |
|
|
|
|
|
|
|
|
// If we are using non permanent delete run that function |
|
|
// If we are using non permanent delete run that function |
|
|
if($config['shadow_del']['use']) |
|
|
if($config['shadow_del']['use'] && ($config['mod']['auto_delete_shadow_post'] === false || !hasPermission($config['mod']['auto_delete_shadow_post']))) |
|
|
return ShadowDelete::deletePost($id, $error_if_doesnt_exist, $rebuild_after); |
|
|
return ShadowDelete::deletePost($id, $error_if_doesnt_exist, $rebuild_after); |
|
|
else |
|
|
else |
|
|
return deletePostPermanent($id, $error_if_doesnt_exist, $rebuild_after); |
|
|
return deletePostPermanent($id, $error_if_doesnt_exist, $rebuild_after); |
|
|