I don't think this filter is accurate. A couple notes about it:

a) It will ensure that you do not get *public* content items from external tenants. You will only get items from interacting tenants.

b) The notion of "interacting tenants" is only valuable when you take special consideration for "joinable" entities that are private (i.e., you only want to show a private group in a search feed if it is also joinable, because even though it is private, you should be able to see it so you can join it). That does not apply when you are dealing with only public/loggedin content items, so the notion of "interacting" I think can be taken out of this relatedcontent search

That said, this clause here *should* be able to change to something like:

`(!opts.includeExternal) ? SearchUtil.filterTerm('tenantAlias', ctx.tenant().alias) : null`