@mickola well yes, the second hook should also work, but either one should work for what you're doing.
I am looking for a profanity filter within NodeBB. I do not see one so far. Can someone please give some guidance?
Yes @pichalite but I did not see that in the list of plugins because I was searching for profanity and filter. Thank you!