diff options
author | nobody <nobody@zotlabs.com> | 2021-02-17 21:50:11 -0800 |
---|---|---|
committer | nobody <nobody@zotlabs.com> | 2021-02-17 21:50:11 -0800 |
commit | 136bc13ff6081a17782ef757c2e979e16333d663 (patch) | |
tree | 0968588cc9e0f4181a70cdb587b551c92b01a2de | |
parent | 62b738da953e8b59f03660eeab592dc58e83ccb0 (diff) | |
download | volse-hubzilla-136bc13ff6081a17782ef757c2e979e16333d663.tar.gz volse-hubzilla-136bc13ff6081a17782ef757c2e979e16333d663.tar.bz2 volse-hubzilla-136bc13ff6081a17782ef757c2e979e16333d663.zip |
forgot these
-rw-r--r-- | include/channel.php | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/include/channel.php b/include/channel.php index fb9dcbc53..5843dacf9 100644 --- a/include/channel.php +++ b/include/channel.php @@ -1294,6 +1294,11 @@ function channel_export_items_date($channel_id, $start, $finish, $zap_compat = f $ret['relocate'] = [ 'channel_address' => $ch['channel_address'], 'url' => z_root()]; } + if ($zap_compat) { + $ret['compatibility']['codebase'] = 'zap'; + } + + $r = q("select * from item where ( item_wall = 1 or item_type != %d ) and item_deleted = 0 and uid = %d and created >= '%s' and created <= '%s' and resource_type != 'photo' order by created", intval(ITEM_TYPE_POST), intval($channel_id), @@ -1356,6 +1361,11 @@ function channel_export_items_page($channel_id, $start, $finish, $page = 0, $lim $ret['relocate'] = [ 'channel_address' => $ch['channel_address'], 'url' => z_root()]; } + if ($zap_compat) { + $ret['compatibility']['codebase'] = 'zap'; + } + + $r = q("select * from item where ( item_wall = 1 or item_type != %d ) and item_deleted = 0 and uid = %d and resource_type != 'photo' and created >= '%s' and created <= '%s' order by created limit %d offset %d", intval(ITEM_TYPE_POST), intval($channel_id), |