diff options
Diffstat (limited to 'include')
-rw-r--r-- | include/channel.php | 11 | ||||
-rwxr-xr-x | include/items.php | 1 | ||||
-rw-r--r-- | include/zot.php | 7 |
3 files changed, 17 insertions, 2 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 */ diff --git a/include/items.php b/include/items.php index e4ead28c8..3b7307239 100755 --- a/include/items.php +++ b/include/items.php @@ -391,6 +391,7 @@ function post_activity_item($arr,$allow_code = false,$deliver = true) { call_hooks('post_local_end', $arr); Zotlabs\Daemon\Master::Summon(array('Notifier','activity',$post_id)); $ret['success'] = true; + $ret['item_id'] = $post_id; $ret['activity'] = $post['item']; } diff --git a/include/zot.php b/include/zot.php index c6d52816a..06996f47f 100644 --- a/include/zot.php +++ b/include/zot.php @@ -3174,8 +3174,11 @@ function process_channel_sync_delivery($sender, $arr, $deliveries) { if(array_key_exists('menu',$arr) && $arr['menu']) sync_menus($channel,$arr['menu']); - if(array_key_exists('file',$arr) && $arr['file']) - sync_files($channel,$arr['file']); + if(array_key_exists('menu',$arr) && $arr['menu']) + sync_menus($channel,$arr['menu']); + + if(array_key_exists('wiki',$arr) && $arr['wiki']) + sync_items($channel,$arr['wiki']); if(array_key_exists('channel',$arr) && is_array($arr['channel']) && count($arr['channel'])) { |