Need help with a way to set up either a hide or block function so i meet Apple And Googles Requirement

Hi,

In my app, I let users create content for other users to see in a image list but i dont have a hide or block function yet.. and i have tried alot of different solutions but the custom filter in the image list wont work :confused:
I somehow need to custom filter two collections, both the created objects collection and user collection.

In the image list i show created objects, it can be marketing for a fotball match for example. I want the logged in user to be able to hide or block all objects created from 1 specific user somehow..

Any tips or tricks to make this possible?
Hope it was not that messy.. im a couple of hours in and my brain is really fried :frowning:

Hi there.

In order to achieve a block feature, you can create a many-to-many relationship with the users collection itself and rename that field as “blocked by”.

On the other side, if you want the logged user to block a current user, you have to set up an update function. It will sound like: update current user “blocked by” logged-in user.

On a list, you can apply a filter that the current user’s “blocked by” does not contain the logged-in user, so it will hide the current user records from the logged-in user.

Ok thank you for the tip :slight_smile:
Found some related topics beneath this post and tried a one to many relationship in User Collection, i dont know if it was just the filter itself that was much better than before or if it was the update on current user that included logged in user as a icon witihin the image list.

But now i atleast can hide every created content from a specific user.

Gonna try solve it today, wish me luck. Thanks for the tip once again!