aboutsummaryrefslogtreecommitdiffstats
path: root/Zotlabs
diff options
context:
space:
mode:
authorzotlabs <mike@macgirvin.com>2017-09-16 16:42:01 -0700
committerzotlabs <mike@macgirvin.com>2017-09-16 16:42:01 -0700
commitca24bfdc464a414ad30aec2dec307c174ef60a0f (patch)
tree0a21a0e4cd15b39fcb2a335eede666b032c2901a /Zotlabs
parentaaa83ae5d2cbb7ee91bff5a61dabc9a6e07473ff (diff)
downloadvolse-hubzilla-ca24bfdc464a414ad30aec2dec307c174ef60a0f.tar.gz
volse-hubzilla-ca24bfdc464a414ad30aec2dec307c174ef60a0f.tar.bz2
volse-hubzilla-ca24bfdc464a414ad30aec2dec307c174ef60a0f.zip
wiki sync - we weren't getting the child pages
Diffstat (limited to 'Zotlabs')
-rw-r--r--Zotlabs/Lib/NativeWiki.php6
1 files changed, 6 insertions, 0 deletions
diff --git a/Zotlabs/Lib/NativeWiki.php b/Zotlabs/Lib/NativeWiki.php
index 390b83958..22aa1817a 100644
--- a/Zotlabs/Lib/NativeWiki.php
+++ b/Zotlabs/Lib/NativeWiki.php
@@ -160,6 +160,12 @@ class NativeWiki {
dbesc($resource_id)
);
if($r) {
+ $q = q("select * from item where resource_type = 'nwikipage' and resource_id = '%s'",
+ dbesc($r[0]['resource_type'])
+ );
+ if($q) {
+ $r = array_merge($r,$q);
+ }
xchan_query($r);
$sync_item = fetch_post_tags($r);
build_sync_packet($uid,array('wiki' => array(encode_item($sync_item[0],true))));