]> git.mxchange.org Git - friendica.git/blobdiff - mod/item.php
dbesc the profile clone
[friendica.git] / mod / item.php
index f667d4fc45bc332d4b0bc9a420279d036abfaebe..40d03a19869762683ee7fc98e3baaf45d88e2458 100644 (file)
@@ -24,6 +24,9 @@ function item_post(&$a) {
                if(count($r))
                        $contact_id = $r[0]['id'];
        }       
+
+       $notify_type = (($parent) ? 'comment-new' : 'wall-new' );
+
        if($_POST['type'] == 'jot') {
 
                do {
@@ -57,6 +60,12 @@ function item_post(&$a) {
                                intval($parent),
                                intval($post_id));
                }
+
+               $url = bin2hex($a->get_baseurl());
+
+               proc_close(proc_open("php include/notifier.php $url $notify_type $post_id > notify.log &",
+                       array(),$foo));
+
        }
        goaway($a->get_baseurl() . "/profile/$profile_uid");