diff options
author | Mario <mario@mariovavti.com> | 2020-10-09 07:38:11 +0000 |
---|---|---|
committer | Mario <mario@mariovavti.com> | 2020-10-09 07:38:11 +0000 |
commit | 3acd5dcc07f74640734b8b5a837354859dd5a213 (patch) | |
tree | 29869f2c78e1be94eb889666099cb538466275aa /include | |
parent | c387902a4415b9e04c4e3cae5f9c8fe8b3540a12 (diff) | |
download | volse-hubzilla-3acd5dcc07f74640734b8b5a837354859dd5a213.tar.gz volse-hubzilla-3acd5dcc07f74640734b8b5a837354859dd5a213.tar.bz2 volse-hubzilla-3acd5dcc07f74640734b8b5a837354859dd5a213.zip |
remove source entries for removed contacts
Diffstat (limited to 'include')
-rw-r--r-- | include/connections.php | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/include/connections.php b/include/connections.php index 96077cd69..658fb6ee6 100644 --- a/include/connections.php +++ b/include/connections.php @@ -446,8 +446,13 @@ function contact_remove($channel_id, $abook_id) { ); $r = q("delete from abconfig where chan = %d and xchan = '%s'", - intval($channel_id), - dbesc($abook['abook_xchan']) + intval($channel_id), + dbesc($abook['abook_xchan']) + ); + + $r = q("delete from source where src_channel_id = %d and src_xchan = '%s'", + intval($channel_id), + dbesc($abook['abook_xchan']) ); return true; |