I have implemented the post being added but being invisible, i have implemented adding it to the "xf_moderation_queue" table but it doesn't add it into the mod que on the forum?
I guess i am missing adding to another sql table?
** * Updates the moderation queue if necessary. */ protected function _updateModerationQueue()...
$writer = XenForo_DataWriter::create('XenForo_DataWriter_DiscussionMessage_Post'); $writer->set('user_id', $userId); $writer->set('username', $username); $writer->set('message', $message); $writer->set('message_state', 'moderated'); $writer->set('thread_id', $threadId); $writer->save();