fix item type

This commit is contained in:
Mike Macgirvin 2010-08-10 01:21:38 -07:00
parent 1c60e6c553
commit 0a4c5a694d
1 changed files with 63 additions and 69 deletions

View File

@ -102,8 +102,6 @@ function item_post(&$a) {
$notify_type = (($parent) ? 'comment-new' : 'wall-new' );
if(($_POST['type'] == 'wall') || ($_POST['type'] == 'wall-comment') || ($_POST['type'] == 'net-comment')) {
do {
$dups = false;
$hash = random_string();
@ -121,7 +119,7 @@ function item_post(&$a) {
`edited`, `uri`, `title`, `body`, `allow_cid`, `allow_gid`, `deny_cid`, `deny_gid`)
VALUES( %d, '%s', %d, '%s', '%s', '%s', '%s', '%s', '%s', '%s', '%s', '%s', '%s', '%s', '%s' )",
intval($profile_uid),
dbesc($_POST['type']),
dbesc($post_type),
intval($contact_id),
dbesc($contact_record['name']),
dbesc($contact_record['url']),
@ -135,7 +133,6 @@ function item_post(&$a) {
dbesc($str_group_allow),
dbesc($str_contact_deny),
dbesc($str_group_deny)
);
$r = q("SELECT `id` FROM `item` WHERE `uri` = '%s' LIMIT 1",
dbesc($uri));
@ -177,15 +174,12 @@ function item_post(&$a) {
intval($parent_item['id'])
);
}
}
$url = $a->get_baseurl();
proc_close(proc_open("php include/notifier.php \"$url\" \"$notify_type\" \"$post_id\" > notify.log &",
array(),$foo));
}
goaway($a->get_baseurl() . "/" . $_POST['return'] );
return; // NOTREACHED
}