mirror of
https://codeberg.org/streams/streams.git
synced 2024-09-20 08:15:13 +00:00
Merge branch 'dev' of /home/macgirvin/zap.macgirvin.com into zap
This commit is contained in:
commit
8500c2fb21
1 changed files with 12 additions and 12 deletions
|
@ -2045,12 +2045,12 @@ function item_store($arr, $allow_exec = false, $deliver = true, $linkid = true)
|
|||
$ret['success'] = true;
|
||||
$ret['item_id'] = $current_post;
|
||||
|
||||
if($linkid) {
|
||||
$li = [ $ret['item'] ];
|
||||
xchan_query($li);
|
||||
$sync_item = fetch_post_tags($li);
|
||||
Libsync::build_link_packet($arr['uid'],[ 'item' => [ encode_item($sync_item[0],true) ] ]);
|
||||
}
|
||||
// if($linkid) {
|
||||
// $li = [ $ret['item'] ];
|
||||
// xchan_query($li);
|
||||
// $sync_item = fetch_post_tags($li);
|
||||
// Libsync::build_link_packet($arr['uid'],[ 'item' => [ encode_item($sync_item[0],true) ] ]);
|
||||
// }
|
||||
|
||||
return $ret;
|
||||
}
|
||||
|
@ -2367,12 +2367,12 @@ function item_store_update($arr, $allow_exec = false, $deliver = true, $linkid =
|
|||
$ret['success'] = true;
|
||||
$ret['item_id'] = $orig_post_id;
|
||||
|
||||
if($linkid) {
|
||||
$li = [ $ret['item'] ];
|
||||
xchan_query($li);
|
||||
$sync_item = fetch_post_tags($li);
|
||||
Libsync::build_link_packet($arr['uid'],[ 'item' => [ encode_item($sync_item[0],true) ] ]);
|
||||
}
|
||||
// if($linkid) {
|
||||
// $li = [ $ret['item'] ];
|
||||
// xchan_query($li);
|
||||
// $sync_item = fetch_post_tags($li);
|
||||
// Libsync::build_link_packet($arr['uid'],[ 'item' => [ encode_item($sync_item[0],true) ] ]);
|
||||
// }
|
||||
|
||||
return $ret;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue