aboutsummaryrefslogtreecommitdiffstats
path: root/Zotlabs/Lib/Libzot.php
diff options
context:
space:
mode:
authorzotlabs <mike@macgirvin.com>2019-03-05 16:57:32 -0800
committerzotlabs <mike@macgirvin.com>2019-03-05 16:57:32 -0800
commit98b1c7a38c3f3ef8ba7d36b77d9366691c3fbf15 (patch)
treeec067aa7079d5daf70a3cf6f83358b80254d80bc /Zotlabs/Lib/Libzot.php
parent47001c33039e6915f12b95a3e948caae6cf21d41 (diff)
downloadvolse-hubzilla-98b1c7a38c3f3ef8ba7d36b77d9366691c3fbf15.tar.gz
volse-hubzilla-98b1c7a38c3f3ef8ba7d36b77d9366691c3fbf15.tar.bz2
volse-hubzilla-98b1c7a38c3f3ef8ba7d36b77d9366691c3fbf15.zip
maintain compatibility with recent zot6 changes
Diffstat (limited to 'Zotlabs/Lib/Libzot.php')
-rw-r--r--Zotlabs/Lib/Libzot.php6
1 files changed, 6 insertions, 0 deletions
diff --git a/Zotlabs/Lib/Libzot.php b/Zotlabs/Lib/Libzot.php
index 6190c9970..7dca2e78a 100644
--- a/Zotlabs/Lib/Libzot.php
+++ b/Zotlabs/Lib/Libzot.php
@@ -685,8 +685,14 @@ class Libzot {
$adult_changed = 1;
if(intval($r[0]['xchan_deleted']) != intval($arr['deleted']))
$deleted_changed = 1;
+ // old style
if(intval($r[0]['xchan_pubforum']) != intval($arr['public_forum']))
$pubforum_changed = 1;
+ // new style 6-MAR-2019
+ if(array_key_exists('channel_type',$arr) && intval($arr['channel_type']) < 2 && intval($r[0]['xchan_pubforum']) !== intval($arr['channel_type'])) {
+ $pubforum_changed = 1;
+ $arr['public_forum'] = $arr['channel_type'];
+ }
if($arr['protocols']) {
$protocols = implode(',',$arr['protocols']);