Quick background for context, this is a social intended app, and here we’re looking at the posts showing up on the main feed. A tag is a thing with a name, banner, etc. So imagine, a tag called “cats” with a cat picture as its banner. Essentially a community. It’s pretty straight forward.
So. The idea is that the user can join different communities which are just tags. When they join a tag, the tag gets added to current user’s “joined_tags”, a list of tags. Separately, when an user creates a post, they can add different tags to it since a Post has a “tags_list” which is just a list of tags. Simple right?
So, a post has a tags_list. And, an user has a joined_tags list.
Now… I need the home feed to only posts where their tags_list contains any of current user’s joined_tags. Simple right? I can’t get it to work though… I’ve tried using advanced filters and regular and other workarounds but still failing. Can someone help and check my setup to tell me please what I’m doing wrong? Or any pointers at all? The entire intersect thing confuses me a bit…
This is my setup:
edit: I’ll also appreciate any suggestions for workarounds I can try… I’ll happily give anything a shot. This means a lot to me as it’s holding up a pretty important part of development for us and I do have to push this update out to our community as soon as possible… thank you anyone that takes the time. Please help. I’m the only dev our team has…
Edit2: Hello everyone. I need to get this update out ASAP for my platform but couldn’t find a proper solution fast enough (plus all the hours I’ve invested so far already…) so in the meanwhile I post a workaround for anyone else that needs it in the future.
My work around is that in each tag (community) I created a field of “list of posts”, so whenever a new post is created I created a workflow of Make change to a list of things (Tags)… then for each tag, add the post that was created to its list of posts. That’s it. Then on my repeating group my source is "Current User’s joined_tag’s:each item’s: list_of_posts (the new field I just made). Cheers. Still interested in a solution to this if anyone knows a more efficient workaround (unless this turned out better, also totally curious about that!).
update: Turns out I was using the wrong field… solved! how silly. Either way leaving this here for anyone in the future if it’s helpful in any way!