Hello friends! I have some a custom form that submits comments in my site. I’m trying to figure out a way to block/autoremove comments taht contains some selected words. I research a lot but didn’t find the anyone trying to do exactly this. Found some indication that it should be possible through hooks in the database. I was trying to make my own using contain() under a export function databaseName_beforeInsert(item, context) { ). but I’m kinda lost. anybody can share a light over this? Are there some topics about it to indicate?
ps: The code I was trying to got up on my own is so poor and full of wrong “if’s and then{'s” that it isn’t worth to show here.
Thank you verry much for any help!