Osclass icon indicating copy to clipboard operation
Osclass copied to clipboard

`findItemByTypes` doesn't properly filter out blocked items

Open patriksh opened this issue 1 year ago • 0 comments

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

patriksh avatar May 21 '23 18:05 patriksh