2017-02-13, 08:37 PM
In MyBB 1.8.10, it seems some soft deleted posts are not showing up. The posts are being soft-deleted correctly but are hidden with display: none.
in functions_post.php
Shouldn't this line
is_moderator($fid, "canviewdeleted")
Be negated (not)
!is_moderator($fid, "canviewdeleted")
Or am I reading that incorrectly? "If the post is -1 visibility (soft deleted) and the moderator canviewdeleted, then hide it". It should be "If the post is -1 visibility (soft deleted) and the moderator CANNOT canviewdeleted, then hide it"
Or am I being totally oblivious to something else going on here? I searched and didn't see any reports on this yet.
in functions_post.php
// Has this post been deleted but can be viewed? Hide this post
if($post['visible'] == -1 && is_moderator($fid, "canviewdeleted"))
{
$deleted_message = $lang->sprintf($lang->postbit_deleted_post_user, $post['username']);
eval("\$deleted_bit = \"".$templates->get("postbit_deleted")."\";");
$post_visibility = "display: none;";
}
Shouldn't this line
is_moderator($fid, "canviewdeleted")
Be negated (not)
!is_moderator($fid, "canviewdeleted")
Or am I reading that incorrectly? "If the post is -1 visibility (soft deleted) and the moderator canviewdeleted, then hide it". It should be "If the post is -1 visibility (soft deleted) and the moderator CANNOT canviewdeleted, then hide it"
Or am I being totally oblivious to something else going on here? I searched and didn't see any reports on this yet.