Hi everyone,
I have some discussions being automatically created through the Flarum API whenever a given event is fired in our backend. The problem is that sometimes many automatic discussions are created at the same time and the real discussions / comments get overwhelmed by them.
So I'm trying to adjust the search criteria to always prioritize discussions with real comments. Ex: few people commented on Discussion 1, created yesterday. It should be prioritized over Discussion 2 created today (because it has no comments). This behavior is different from "Top", cause it's not ordering by the number of comments only.
Is there any way to extend the SearchCriteria
class or any other piece in the system in order to make it work?
Thank you very much! 🙂