]> git.mxchange.org Git - friendica.git/blobdiff - src/Worker/RemoveContact.php
Coding standards
[friendica.git] / src / Worker / RemoveContact.php
index e59523ade4bda975ef223dd96a52ba1da33ae9b4..13cbbec8ba18cb4add35ed2eb97406b88aaca5a4 100644 (file)
@@ -1,6 +1,6 @@
 <?php
 /**
- * @copyright Copyright (C) 2020, Friendica
+ * @copyright Copyright (C) 2010-2021, the Friendica project
  *
  * @license GNU AGPL version 3 or any later version
  *
@@ -54,6 +54,8 @@ class RemoveContact {
                        DBA::delete('item', ['contact-id' => $id]);
                }
 
+               DBA::delete('mail', ['contact-id' => $id]);
+
                Post\ThreadUser::delete(['author-id' => $id]);
                Post\ThreadUser::delete(['owner-id' => $id]);
                Post\ThreadUser::delete(['causer-id' => $id]);