const method = params.sort === 'old' ?
Yeah you can change to this in getTagTids function if you want to get topics with any of the tags passed in.
parse.post runs on categories too, I want to execute a code only when I'm inside a topic. Is this possible? I've been looking for hours and I can't find out how.
I don't think it is possible right now since they both use the same method and hook, are you trying to change post content only in a topic? You might be able to use another hook that is only called when inside a topic.
Yep, ended up using posts.isMain function.