I want to make a plugin to listen for clicks / opens on posts...
And I want to check the category...
how to do that?
Hello @sadmulwar -- I haven't had a chance to look at this yet, it will have to wait until after Wednesday.
@baris works now, thanks.
And you need to run ./nodebb build after making changes.
Yes, the action:ajaxify.end client-side hook will be fired every time a page changes (not sure about cold load, but I believe so...).
data.url will contain the url of the page, so check that it matches the regex /^topic/[\d]+/ to ensure you're adding event handlers on the correct page.
I'm seeing stack traces, but there's no indication of NodeBB starting up or stopping, so I don't know what's happening here. Could be memory exhaustion leading to the NodeBB process being killed?