Hi everyone ! Hope you guys are all right
The explanation is a bit long but the issue is very interesting ! Tell me what you think !
I am blocked on the main feed of a social media I’m building on BB. I’m displaying all the posts in a repeating group. Except if the Post’s privacy is “friends only” and the current user is not in the list of friends of the Post’s creator :

So first I only did a condition “If current User’s list-friends doesn’t contain current Post’s creator and Post’s privacy is Friends” then “This element is not visible”. Easy.
However in order to have a more performant app specially when the feed page is loading, I’ve added a limited number of Posts which are charging at first.

Like the pic above except that instead of “10” I add a Custom State : “:item until CS”. And every time the user click on the group “Display More”, I’m adding +20 at the Custom State.
The main issue is that sometimes there are 20 Posts with the privacy “Friends only” and none of them can be visible for the Current User. Indeed, he or she is not inside their friends list ! So you click on “Display More” but nothing happened.
I have two questions that might solve the issue in 2 different ways :
-
I put Privacy Rules to the data type “Post” in order to block the access if you are not inside the friends list of the Post’s creator. Is there a way to know inside a “Do a search” inside a reapeating group that the element is not reachable ? I’ve tried “Creator is not empty” but it doesn’t work.
-
The 2nd way is to add more items each time we click on “Display More”. The main issue is that I have to know how many Post are hidden in order to really diplay +20 item. I’ve tried with “Intersect with” but it does not help. How would you do it ?
There is also a 3rd way : addind a distribution list data field (List of Users) to each Post. If you are inside the distribution list you can see the post … But I don’t like this option because it’s really heavy in terms of performance.
Maybe you have also others advices ?
Anyway, thanks in advance and have a good day !
Cheers,
Charles.
But I don’t know how to do that


