use Friendica\Core\Logger;
use Friendica\Database\DBA;
use Friendica\Database\DBStructure;
+use Friendica\DI;
use Friendica\Model\Photo;
use Friendica\Model\Post;
DBA::delete('contact-relation', ['relation-cid' => $id]);
DBA::delete('contact-relation', ['cid' => $id]);
DBA::delete('event', ['cid' => $id]);
- DBA::delete('fsuggest', ['cid' => $id]);
+ DI::fsuggest()->delete(DI::fsuggest()->selectForContact($id));
DBA::delete('post-tag', ['cid' => $id]);
DBA::delete('user-contact', ['cid' => $id]);
DBA::delete('group_member', ['contact-id' => $id]);
- DBA::delete('intro', ['contact-id' => $id]);
+ DI::intro()->delete(DI::introFactory()->createDummy($id));
return $contact;
}