I have a plugin that makes use of the TopicQuery.add_custom_filter function.
It applies my custom filter as expected only to the default view of topics displayed on the landing page.
I noticed this is because in the topic_query.rb file under the defualt_results method there is a call to apply my custom filters with
result = apply_ordering(result, options)
this is great, but not exactly what I wanted. I wanted to have that filter applied to anything showing up under the /review page. I’m not sure how I would do this.
is anyone familiar with this part of the code?
the way I am currently filtering can be seen here:
and the discourse rb file I am talking about is this one: