diff options
author | Mario Vavti <mario@mariovavti.com> | 2016-06-22 09:58:55 +0200 |
---|---|---|
committer | Mario Vavti <mario@mariovavti.com> | 2016-06-22 09:58:55 +0200 |
commit | 5536df51f58a65f5a42051b0466b1c13c9a9718a (patch) | |
tree | e2000aa48946689e1c9e2b9d7b172854d69e2cbd /include/items.php | |
parent | ecae0b3d97d759603bb2bf9bc51187a2842964c8 (diff) | |
parent | f48b12ff52c4fda85c09c1cc476f7cf4c0cfb649 (diff) | |
download | volse-hubzilla-5536df51f58a65f5a42051b0466b1c13c9a9718a.tar.gz volse-hubzilla-5536df51f58a65f5a42051b0466b1c13c9a9718a.tar.bz2 volse-hubzilla-5536df51f58a65f5a42051b0466b1c13c9a9718a.zip |
erge branch 'dev' into sabre32
Diffstat (limited to 'include/items.php')
-rwxr-xr-x | include/items.php | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/include/items.php b/include/items.php index a844cd1f6..84683273d 100755 --- a/include/items.php +++ b/include/items.php @@ -1889,6 +1889,7 @@ function item_store($arr, $allow_exec = false, $deliver = true) { } + $ret['item'] = $arr; call_hooks('post_remote_end',$arr); @@ -2139,6 +2140,15 @@ function item_store_update($arr,$allow_exec = false, $deliver = true) { return $ret; } + // fetch an unescaped complete copy of the stored item + + $r = q("select * from item where id = %d", + intval($orig_post_id) + ); + if($r) + $arr = $r[0]; + + $r = q("delete from term where oid = %d and otype = %d", intval($orig_post_id), intval(TERM_OBJ_POST) @@ -2170,6 +2180,8 @@ function item_store_update($arr,$allow_exec = false, $deliver = true) { $arr['iconfig'] = $meta; } + $ret['item'] = $arr; + call_hooks('post_remote_update_end',$arr); if($deliver) { |