diff options
author | redmatrix <redmatrix@redmatrix.me> | 2015-09-07 18:20:47 -0700 |
---|---|---|
committer | redmatrix <redmatrix@redmatrix.me> | 2015-09-07 18:20:47 -0700 |
commit | 4eec9a2fba46396edadc03e71da025ac15389f68 (patch) | |
tree | b64ee90c072a5bee8cbfb96583fc1b973abf423e /mod | |
parent | 6d1b64065aa1f44e2b9d864ddba97891ca85d1e5 (diff) | |
parent | 5751437c93d43c07726cf122c87a39ac522032c6 (diff) | |
download | volse-hubzilla-4eec9a2fba46396edadc03e71da025ac15389f68.tar.gz volse-hubzilla-4eec9a2fba46396edadc03e71da025ac15389f68.tar.bz2 volse-hubzilla-4eec9a2fba46396edadc03e71da025ac15389f68.zip |
Merge https://github.com/redmatrix/redmatrix into pending_merge
Conflicts:
include/items.php
view/it/messages.po
view/it/strings.php
Diffstat (limited to 'mod')
-rw-r--r-- | mod/item.php | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/mod/item.php b/mod/item.php index a92040627..d0cf59091 100644 --- a/mod/item.php +++ b/mod/item.php @@ -805,6 +805,19 @@ function item_post(&$a) { update_remote_id($channel,$post_id,$webpage,$pagetitle,$namespace,$remote_id,$mid); + if(! $parent) { + $r = q("select * from item where id = %d", + intval($post_id) + ); + if($r) { + xchan_query($r); + $sync_item = fetch_post_tags($r); + $rid = q("select * from item_id where iid = %d", + intval($post_id) + ); + build_sync_packet($uid,array('item' => array(encode_item($sync_item[0],true)),'item_id' => $rid)); + } + } if(! $nopush) proc_run('php', "include/notifier.php", 'edit_post', $post_id); |