aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatthew Exon <github.mexon@spamgourmet.com>2012-06-12 07:09:50 +0200
committerMatthew Exon <github.mexon@spamgourmet.com>2012-06-12 07:58:12 +0200
commit33a4e45f6bdaa249f6aa0b569b704c74a1bd7141 (patch)
tree1a74b2406954e36a201500876ea7d9aedcba4e09
parent6477c24919eb969d80324cf29129213f2fb8a0ea (diff)
downloadvolse-hubzilla-33a4e45f6bdaa249f6aa0b569b704c74a1bd7141.tar.gz
volse-hubzilla-33a4e45f6bdaa249f6aa0b569b704c74a1bd7141.tar.bz2
volse-hubzilla-33a4e45f6bdaa249f6aa0b569b704c74a1bd7141.zip
Add a hook for post-processing remote items after they've been stored in the database and have an ID
-rwxr-xr-xinclude/items.php10
1 files changed, 10 insertions, 0 deletions
diff --git a/include/items.php b/include/items.php
index 66e219ddf..037de35eb 100755
--- a/include/items.php
+++ b/include/items.php
@@ -900,6 +900,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",