]> git.mxchange.org Git - friendica.git/blobdiff - mod/dfrn_confirm.php
more error checking on posts
[friendica.git] / mod / dfrn_confirm.php
index 6b9bbfe133b1adf22137ab05e5bf08c2255cc3cb..24e8bf106a9a938dcf6e0ddf3352b2839fcbf38f 100644 (file)
@@ -432,13 +432,14 @@ function dfrn_confirm_post(&$a,$handsfree = null) {
                                $arr['object'] .= '<link>' . xmlify('<link rel="alternate" type="text/html" href="' . $contact['url'] . '" />' . "\n");
                                $arr['object'] .= xmlify('<link rel="photo" type="image/jpeg" href="' . $contact['thumb'] . '" />' . "\n");
                                $arr['object'] .= '</link></object>' . "\n";
+                               $arr['last-child'] = 1;
 
                                $i = item_store($arr);
 
                                $php_path = ((strlen($a->config['php_path'])) ? $a->config['php_path'] : 'php');
 
-                           proc_close(proc_open("\"$php_path\" \"include/notifier.php\" \"activity\" \"$i\" &",
-                       array(),$foo));
+                           //proc_close(proc_open("\"$php_path\" \"include/notifier.php\" \"activity\" \"$i\" &", array(),$foo));
+                           proc_run($php_path,"include/notifier.php","activity","$i");
 
                        }