]> git.mxchange.org Git - friendica.git/blobdiff - src/Worker/RemoveContact.php
Add suggestions
[friendica.git] / src / Worker / RemoveContact.php
index e59523ade4bda975ef223dd96a52ba1da33ae9b4..f64d4d02d537fd74c7a0c1cf3ceaa89d2c2daca4 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,9 @@ class RemoveContact {
                        DBA::delete('item', ['contact-id' => $id]);
                }
 
+               DBA::delete('mail', ['contact-id' => $id]);
+               DBA::delete('mail', ['author-id' => $id]);
+
                Post\ThreadUser::delete(['author-id' => $id]);
                Post\ThreadUser::delete(['owner-id' => $id]);
                Post\ThreadUser::delete(['causer-id' => $id]);