]> git.mxchange.org Git - friendica.git/commitdiff
Add a hook for post-processing remote items after they've been stored in the database...
authorMatthew Exon <github.mexon@spamgourmet.com>
Tue, 12 Jun 2012 05:09:50 +0000 (07:09 +0200)
committerMatthew Exon <github.mexon@spamgourmet.com>
Tue, 12 Jun 2012 05:58:12 +0000 (07:58 +0200)
include/items.php

index 66e219ddf2cb501ca3a3bb9068c1d0b388fc7540..037de35eb04f63991ef013c17709be05e191f761 100755 (executable)
@@ -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",