diff options
author | Mike Macgirvin <mike@macgirvin.com> | 2010-07-17 19:26:00 -0700 |
---|---|---|
committer | Mike Macgirvin <mike@macgirvin.com> | 2010-07-17 19:26:00 -0700 |
commit | aff4f63ff8e005bb3ce1d726405fd6d5d2dcfa60 (patch) | |
tree | 37637e69e138ed247d2cbf194481324b39317d2c /mod/item.php | |
parent | 2a17c20fb8e910aeb814ab999cf9131478dd2b03 (diff) | |
download | volse-hubzilla-aff4f63ff8e005bb3ce1d726405fd6d5d2dcfa60.tar.gz volse-hubzilla-aff4f63ff8e005bb3ce1d726405fd6d5d2dcfa60.tar.bz2 volse-hubzilla-aff4f63ff8e005bb3ce1d726405fd6d5d2dcfa60.zip |
remote comments working now
Diffstat (limited to 'mod/item.php')
-rw-r--r-- | mod/item.php | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/mod/item.php b/mod/item.php index 437e6ac59..1584c7ddb 100644 --- a/mod/item.php +++ b/mod/item.php @@ -72,8 +72,10 @@ function item_post(&$a) { } // get contact info for poster - if((x($_SESSION,'visitor_id')) && (intval($_SESSION['visitor_id']))) + + if((x($_SESSION,'visitor_id')) && (intval($_SESSION['visitor_id']))) { $contact_id = $_SESSION['visitor_id']; + } else { $r = q("SELECT * FROM `contact` WHERE `uid` = %d AND `self` = 1 LIMIT 1", intval($_SESSION['uid'])); @@ -104,15 +106,16 @@ function item_post(&$a) { } while($dups == true); - $r = q("INSERT INTO `item` (`uid`,`type`,`contact-id`,`owner-name`,`owner-link`,`owner-avatar`, `created`,`edited`,`hash`,`body`, + $r = q("INSERT INTO `item` (`uid`,`type`,`contact-id`,`owner-name`,`owner-link`,`owner-avatar`, `remote-id`, `created`,`edited`,`hash`,`body`, `allow_cid`, `allow_gid`, `deny_cid`, `deny_gid`) - VALUES( %d, '%s', %d, '%s', '%s', '%s', '%s', '%s', '%s', '%s', '%s', '%s', '%s', '%s' )", + VALUES( %d, '%s', %d, '%s', '%s', '%s', '%s', '%s', '%s', '%s', '%s', '%s', '%s', '%s', '%s' )", intval($profile_uid), dbesc($_POST['type']), intval($contact_id), dbesc($contact_record['name']), dbesc($contact_record['url']), dbesc($contact_record['thumb']), + dbesc("urn:X-dfrn:" . $a->get_baseurl() . ':' . intval($profile_uid) . ':' . $hash), datetime_convert(), datetime_convert(), dbesc($hash), @@ -159,7 +162,7 @@ function item_post(&$a) { $url = bin2hex($a->get_baseurl()); - proc_close(proc_open("php include/notifier.php $url $notify_type $post_id > notify.log &", + proc_close(proc_open("php include/notifier.php \"$url\" \"$notify_type\" \"$post_id\" > notify.log &", array(),$foo)); } |