diff options
author | redmatrix <redmatrix@redmatrix.me> | 2015-09-07 18:14:30 -0700 |
---|---|---|
committer | redmatrix <redmatrix@redmatrix.me> | 2015-09-07 18:14:30 -0700 |
commit | 6d1b64065aa1f44e2b9d864ddba97891ca85d1e5 (patch) | |
tree | bfc5961a5391cb8bd43ca7071e45c344f510992c /include/zot.php | |
parent | 2f52b6c164a76435a957ad6a0562a55ae0becc2a (diff) | |
download | volse-hubzilla-6d1b64065aa1f44e2b9d864ddba97891ca85d1e5.tar.gz volse-hubzilla-6d1b64065aa1f44e2b9d864ddba97891ca85d1e5.tar.bz2 volse-hubzilla-6d1b64065aa1f44e2b9d864ddba97891ca85d1e5.zip |
consolidate import_items/sync_items
Diffstat (limited to 'include/zot.php')
-rw-r--r-- | include/zot.php | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/include/zot.php b/include/zot.php index 9610df894..6f159b4f8 100644 --- a/include/zot.php +++ b/include/zot.php @@ -2884,6 +2884,12 @@ function process_channel_sync_delivery($sender, $arr, $deliveries) { if(array_key_exists('chatroom',$arr) && $arr['chatroom']) sync_apps($channel,$arr['chatroom']); + if(array_key_exists('item',$arr) && $arr['item']) + sync_items($channel,$arr['item']); + + if(array_key_exists('item_id',$arr) && $arr['item_id']) + sync_items($channel,$arr['item_id']); + if(array_key_exists('channel',$arr) && is_array($arr['channel']) && count($arr['channel'])) { if(array_key_exists('channel_page_flags',$arr['channel']) && intval($arr['channel']['channel_pageflags'])) { $arr['channel']['channel_removed'] = (($arr['channel']['channel_pageflags'] & 0x8000) ? 1 : 0); |