Merge https://github.com/redmatrix/redmatrix into pending_merge
This commit is contained in:
commit
880ca35681
@ -205,19 +205,23 @@ function events_post(&$a) {
|
|||||||
|
|
||||||
$item_id = event_store_item($datarray,$event);
|
$item_id = event_store_item($datarray,$event);
|
||||||
|
|
||||||
if($r) {
|
if($item_id) {
|
||||||
xchan_query($r);
|
$r = q("select * from item where id = %d",
|
||||||
$sync_item = fetch_post_tags($r);
|
intval($item_id)
|
||||||
$z = q("select * from event where event_hash = '%s' and uid = %d limit 1",
|
|
||||||
dbesc($r[0]['resource_id']),
|
|
||||||
intval($channel['channel_id'])
|
|
||||||
);
|
);
|
||||||
if($z) {
|
if($r) {
|
||||||
build_sync_packet($channel['channel_id'],array('event_item' => array(encode_item($sync_item[0],true)),'event' => $z));
|
xchan_query($r);
|
||||||
|
$sync_item = fetch_post_tags($r);
|
||||||
|
$z = q("select * from event where event_hash = '%s' and uid = %d limit 1",
|
||||||
|
dbesc($r[0]['resource_id']),
|
||||||
|
intval($channel['channel_id'])
|
||||||
|
);
|
||||||
|
if($z) {
|
||||||
|
build_sync_packet($channel['channel_id'],array('event_item' => array(encode_item($sync_item[0],true)),'event' => $z));
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
if($share)
|
if($share)
|
||||||
proc_run('php',"include/notifier.php","event","$item_id");
|
proc_run('php',"include/notifier.php","event","$item_id");
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user