S
Syndol
Guest
When you delete a user, the xf_conversation_recipient table updates its user_id to zero which is not what you are looking for as per:
"leaving records in conversation recipient to keep data somewhat intact for others" [DataWriter/User.php -> _postDelete()]
In Model/User.php you include xf_conversation_recipient in the $userContentChanges array.
This should not be the case since in DataWriter/User.php in function _postDelete() you call changeContentUser() with a user_id of zero and since that function only checks against a NULL value, the user_id is updated.
"leaving records in conversation recipient to keep data somewhat intact for others" [DataWriter/User.php -> _postDelete()]
In Model/User.php you include xf_conversation_recipient in the $userContentChanges array.
This should not be the case since in DataWriter/User.php in function _postDelete() you call changeContentUser() with a user_id of zero and since that function only checks against a NULL value, the user_id is updated.