X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=mod%2Fitem.php;h=40d03a19869762683ee7fc98e3baaf45d88e2458;hb=03689fa6b0240532a00a63fbead6dab9d95adbb5;hp=f667d4fc45bc332d4b0bc9a420279d036abfaebe;hpb=1ea69ae275245f65ee0bb8f959744f0896913a0c;p=friendica.git diff --git a/mod/item.php b/mod/item.php index f667d4fc45..40d03a1986 100644 --- a/mod/item.php +++ b/mod/item.php @@ -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");