Fixed Orphan profile post data after user deletion


Well-known member
When a user is being deleted, the xf dw runs only
$db->delete('xf_profile_post', "profile_user_id = $userIdQuoted");
This is causing several problems:
1. the comments from this posts won't be deleted
2. the associated data, which are deleted via XenForo_DataWriter_DiscussionMessage won't be deleted too
3. all other data (from addons) which would be deleted on profilepostdw::postDelete won't be deleted too,
couldn't you start to use the deferred system for such tasks too? (just like with the threads)
Last edited: