Filtering a repeater

Hi Folks!

I’m stuck on this and would appreciate some help.

I have a custom Forum where members have the ability to post a Forum post and comment on Forum posts. Now I’m creating Forum comment notifications using a repeater in a lightbox. I’ve created a basic version so the repeater is connected to all Forum comments so all members are seeing all Forum comments. I’d like to filter the repeater without the member having to filter it themselves with a button or something else. I’d like them to only be shown notifications in the repeater that are relevant to them: another member has commented on their Forum post and another member has commented on a Forum post that they’ve also commented on.

There are two collections - Forum posts and Forum comments. I guess the variables in the collections that are relevant are the owner of the Forum post or comment and the title of the Forum post (called “Post Name” and “Post” in the collections. When a member posts a Forum post they’re the owner of that post that has a certain title. So when someone posts a comment on that post with that title, the owner of that title should get a notification. This covers members getting a notification when someone comments on their post. Also, when someone posts a comment on a Forum post with a certain title, everyone else who has posted a comment on that same Forum post with the same title should also get a notification. This covers members getting a notification when someone else comments on a post they’ve also commented on.

I hope this is clear. I’m relatively new to coding.

Any ideas how to accomplish this?