This will be available in 1.18.4 https://github.com/NodeBB/NodeBB/issues/9845barisusakli created this issue in NodeBB/NodeBB closed ability to sort topics by views #9845
Grabbing data on topic reply
I'm working on a minor "experience" per post based plugin. User posts, it saves experience to an object. The saving works great, it displays fine. What I'm having an issue with is when someone replies to a topic. Everything stores correctly... but since the page doesn't refresh, the post doesnt populate with the updated information UNLESS they refresh the page.
I've tried multiple hooks/filters and can't get any to work. The most appropriate seems to be "action:topic.reply". If I try to make a DB call to grab the object data, the action returns long before the DB call returns so none of the data I need gets added to the returned post object.