• This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn more.

Lack of interest XenForo_Model_ProfilePost->deleteProfilePost function missing...

Jaxel

Well-known member
#1
Simple... all other content types have their own functions...
Code:
$this->getModelFromCache('XenForo_Model_Thread')->deleteThread($thread['content_id'], 'hard');
Code:
$this->getModelFromCache('XenForo_Model_Post')->deletePost($post['content_id'], 'hard');

However, to do the same for ProfilePosts, I must instead use the following:
Code:
$dw = XenForo_DataWriter::create('XenForo_DataWriter_DiscussionMessage_ProfilePost');
$dw->setExistingData($profile_post['content_id']);
$dw->delete();
Sure... still simple... but I'm a fan of uniformity.