diff options
author | friendica <info@friendica.com> | 2013-09-17 20:50:09 -0700 |
---|---|---|
committer | friendica <info@friendica.com> | 2013-09-17 20:50:09 -0700 |
commit | ff2ada207a7c90f095d1fad1513440eb08d3840a (patch) | |
tree | 75a0388384a44416c0e18cdb418b113ac5bbb8af /include/zot.php | |
parent | 7f4b865c2bbdf481fa94639518026d70a8bf9492 (diff) | |
download | volse-hubzilla-ff2ada207a7c90f095d1fad1513440eb08d3840a.tar.gz volse-hubzilla-ff2ada207a7c90f095d1fad1513440eb08d3840a.tar.bz2 volse-hubzilla-ff2ada207a7c90f095d1fad1513440eb08d3840a.zip |
Pieces we'll need to tie together chanman and account/channel deletion and directory sync. Please do not mess with any of this.
Please do not mess with any of this. Please do not mess with any of this. Please do not mess with any of this. Please do not mess with any of this. Please do not mess with any of this. Please do not mess with any of this. Please do not mess with any of this. Please do not mess with any of this. Please do not mess with any of this. Please do not mess with any of this. Please do not mess with any of this. Please do not mess with any of this. Please do not mess with any of this. Please do not mess with any of this. Please do not mess with any of this. Please do not mess with any of this. Please do not mess with any of this. Please do not mess with any of this. Please do not mess with any of this. Please do not mess with any of this. Please do not mess with any of this. Please do not mess with any of this. Please do not mess with any of this. Please do not mess with any of this.
OK? Understood?
Diffstat (limited to 'include/zot.php')
-rw-r--r-- | include/zot.php | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/include/zot.php b/include/zot.php index 0f42ddc7f..74ac6d015 100644 --- a/include/zot.php +++ b/include/zot.php @@ -610,6 +610,16 @@ function import_xchan($arr) { $what = 'primary_hub '; $changed = true; } + if((($r[0]['hubloc_flags'] & HUBLOC_FLAGS_DELETED) && (! $location['deleted'])) + || ((! ($r[0]['hubloc_flags'] & HUBLOC_FLAGS_DELETED)) && ($location['deleted']))) { + $r = q("update hubloc set hubloc_flags = (hubloc_flags ^ %d), hubloc_updated = '%s' where hubloc_id = %d limit 1", + intval(HUBLOC_FLAGS_DELETED), + dbesc(datetime_convert()), + intval($r[0]['hubloc_id']) + ); + $what = 'delete_hub '; + $changed = true; + } continue; } |