Osclass
Osclass copied to clipboard
`findItemByTypes` doesn't properly filter out blocked items
Describe the bug
Newly rewritten function findItemByTypes
doesn't properly filter out blocked items.
In Osclass 3.x by default blocked items were filtered out from all types other than "all". https://github.com/osclass/Osclass/blob/b1c67a2bd623748a3090b66d8ac5a0baf78172c8/oc-includes/osclass/model/Item.php#L560-L564
In Osclass 5.x that's not the case, hence issues such as displaying blocked items on public profile happen. https://github.com/mindstellar/Osclass/blob/561833cf7c2e7f820eb4808d37367b4c93ad0ccc/oc-includes/osclass/classes/model/Item.php#L559-L592