aboutsummaryrefslogtreecommitdiffstats
path: root/include/zot.php
diff options
context:
space:
mode:
authorfriendica <info@friendica.com>2014-11-10 17:44:02 -0800
committerfriendica <info@friendica.com>2014-11-10 17:44:02 -0800
commit56199027768a07d7f1f980df08fb9c5dc7b1278e (patch)
treeb8b754c967785d60174e8202ceefe2929cc21f42 /include/zot.php
parent62094652333514e92f9f00699e14b9f49680bb64 (diff)
downloadvolse-hubzilla-56199027768a07d7f1f980df08fb9c5dc7b1278e.tar.gz
volse-hubzilla-56199027768a07d7f1f980df08fb9c5dc7b1278e.tar.bz2
volse-hubzilla-56199027768a07d7f1f980df08fb9c5dc7b1278e.zip
indicate public forums in directory results (there will be some [possibly considerable] lag time before existing forums are correctly tagged).
Diffstat (limited to 'include/zot.php')
-rw-r--r--include/zot.php9
1 files changed, 5 insertions, 4 deletions
diff --git a/include/zot.php b/include/zot.php
index ac68c0035..2954408b9 100644
--- a/include/zot.php
+++ b/include/zot.php
@@ -702,10 +702,6 @@ function import_xchan($arr,$ud_flags = UPDATE_FLAGS_UPDATED, $ud_arr = null) {
if((($arr['site']['directory_mode'] === 'standalone') || ($dirmode & DIRECTORY_MODE_STANDALONE)) && ($arr['site']['url'] != z_root()))
$arr['searchable'] = false;
- $public_forum = (($r[0]['xchan_flags'] & XCHAN_FLAGS_PUBFORUM) ? true : false);
- $pubforum_changed = ((intval($public_forum) != intval($arr['public_forum'])) ? true : false);
- if($pubforum_changed)
- $new_flags = $r[0]['xchan_flags'] ^ XCHAN_FLAGS_PUBFORUM;
$hidden = (1 - intval($arr['searchable']));
@@ -725,6 +721,11 @@ function import_xchan($arr,$ud_flags = UPDATE_FLAGS_UPDATED, $ud_arr = null) {
if($deleted_changed)
$new_flags = $new_flags ^ XCHAN_FLAGS_DELETED;
+ $public_forum = (($r[0]['xchan_flags'] & XCHAN_FLAGS_PUBFORUM) ? true : false);
+ $pubforum_changed = ((intval($public_forum) != intval($arr['public_forum'])) ? true : false);
+ if($pubforum_changed)
+ $new_flags = $r[0]['xchan_flags'] ^ XCHAN_FLAGS_PUBFORUM;
+
if(($r[0]['xchan_name_date'] != $arr['name_updated'])
|| ($r[0]['xchan_connurl'] != $arr['connections_url'])
|| ($r[0]['xchan_flags'] != $new_flags)