Most general function for "content is saved" where I can fetch the content?

Marcus

Well-known member
To avoid misuse of my forum I am looking for the most abstract function where I can rule out "WAREZ" posts, this function should have

1. access to the content (post message, wall message)
2. independent whether it is the first post, or a post within a thread, whether it is updated or newly created
3. can set the content to "moderated"

You could extend XenForo_Model_Post::getPostInsertMessageState, but you don't have access to the message text there. Otherwise you can extend XenForo_ControllerPublic_Thread::actionAddReply which saves the actual post.

I did manipulate ControllerPublic_Thread_actionAddReply() but that only works for new inserted posts, not for the first post within a thread, and I am unsure whether it works for updated content.
 
Top Bottom