aboutsummaryrefslogtreecommitdiffstats
path: root/include/channel.php
diff options
context:
space:
mode:
authorHubzilla <hubzilla@hz.macgirvin.com>2017-01-22 18:48:45 -0800
committerHubzilla <hubzilla@hz.macgirvin.com>2017-01-22 18:48:45 -0800
commit17f1d39fcf973ac35f14a36faa2b92867fbb11e9 (patch)
tree43ba2ffbfbeb0b056625aabc4aeb42707747d693 /include/channel.php
parent3bafa05ad1093d70c893d0985788203ccb1e7169 (diff)
downloadvolse-hubzilla-17f1d39fcf973ac35f14a36faa2b92867fbb11e9.tar.gz
volse-hubzilla-17f1d39fcf973ac35f14a36faa2b92867fbb11e9.tar.bz2
volse-hubzilla-17f1d39fcf973ac35f14a36faa2b92867fbb11e9.zip
basic support for clone syncing of wikis and wiki pages
Diffstat (limited to 'include/channel.php')
-rw-r--r--include/channel.php11
1 files changed, 11 insertions, 0 deletions
diff --git a/include/channel.php b/include/channel.php
index 83f48f361..247d3d358 100644
--- a/include/channel.php
+++ b/include/channel.php
@@ -671,6 +671,17 @@ function identity_basic_export($channel_id, $items = false) {
$ret['mail'] = $m;
}
+ $r = q("select * from item where resource_type like 'nwiki%%' and uid = %d order by created",
+ intval($channel_id)
+ );
+ if($r) {
+ $ret['wiki'] = array();
+ xchan_query($r);
+ $r = fetch_post_tags($r,true);
+ foreach($r as $rv) {
+ $ret['wiki'][] = encode_item($rv,true);
+ }
+ }
/** @warning this may run into memory limits on smaller systems */