Look at the number of notifications. What do you see? - Yes, there is -10.
As it turns out, if you very fast click on -
Even if you simply click on a few laps they stray from the correct number.
@Tanner write API could help with that, but until then, here's the high-level implementation/workaround:
FTPP (form-to-post plugin) establishes new POST route at /feedback
When that route is called, take req.body.text (where text is the id in the corresponding form) and call Topic.post as a pre-registered user.
That's pretty much it. There's more to expand on (such as spam prevention/throttling/auth/security), but yeah.
@esiao if you update to latest you shouldn't need to add a data-ajaxify anymore. https://github.com/NodeBB/NodeBB/issues/1938
barisusakli created this issue in NodeBB/NodeBB
href.slice(-1) === "#"; checks last element