conveo for me as well
NodeBB anti spam
So, I don't know if you want to plumb through the
reqobject, or maybe implement the filter on a higher level, maybe at the
Topic.replyare both standalone functions, but to follow DRY,
So I believe putting a hook in at the
Posts.createlevel (here, as the first waterfall function) would be easiest.
filter:posts.validateas a name.
filter:posts.saveis already there, but the post creation process has already begun, so it is used mostly for munging data after it is destined to enter the database.
Post.createsounds like a good place, but can I guarantee that the
reqobject is going to be plumbed in from all the paths?
Hm... since posting is done via web sockets, we don't have the same data we would have in req... would have to example the socket data and see what we have to work with...
ok i'll investigate and post back
I don't think we should put it in
Posts.createas that is the internal function used by importers as well, Topics.reply seems like a better place as it is the one that is called by users and Topics.post calls that too.
Haha good thing we have @baris watching out for the wrong things I say
@bentael Really glad to see the evolution of NodeBB's first anti-spam plugin!!