aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorfriendica <info@friendica.com>2012-06-12 00:52:36 -0700
committerfriendica <info@friendica.com>2012-06-12 00:52:36 -0700
commit645c2f90928bc5a29548001f9600ca3807b8c149 (patch)
tree4233497650d5456558a2c233abd53428ced85a2a /include
parentb7e2f802d8eec883276a3a7b30aa418aee1fb2a4 (diff)
parent33a4e45f6bdaa249f6aa0b569b704c74a1bd7141 (diff)
downloadvolse-hubzilla-645c2f90928bc5a29548001f9600ca3807b8c149.tar.gz
volse-hubzilla-645c2f90928bc5a29548001f9600ca3807b8c149.tar.bz2
volse-hubzilla-645c2f90928bc5a29548001f9600ca3807b8c149.zip
Merge pull request #331 from mexon/upstream
Add a hook for post-processing remote items
Diffstat (limited to 'include')
-rwxr-xr-xinclude/items.php10
1 files changed, 10 insertions, 0 deletions
diff --git a/include/items.php b/include/items.php
index 38bdf31c0..d543dcab0 100755
--- a/include/items.php
+++ b/include/items.php
@@ -908,6 +908,16 @@ function item_store($arr,$force_parent = false) {
intval($current_post)
);
+ $arr['id'] = $current_post;
+ $arr['parent'] = $parent_id;
+ $arr['allow_cid'] = $allow_cid;
+ $arr['allow_gid'] = $allow_gid;
+ $arr['deny_cid'] = $deny_cid;
+ $arr['deny_gid'] = $deny_gid;
+ $arr['private'] = $private;
+ $arr['deleted'] = $parent_deleted;
+ call_hooks('post_remote_end',$arr);
+
// update the commented timestamp on the parent
q("UPDATE `item` set `commented` = '%s', `changed` = '%s' WHERE `id` = %d LIMIT 1",