1
0
Fork 0

fixup of some nits with live update and remote comment display on profile page

This commit is contained in:
Mike Macgirvin 2010-07-25 22:51:45 -07:00
commit 9f81c3345b
13 changed files with 77 additions and 15 deletions

View file

@ -91,10 +91,16 @@ function item_post(&$a) {
if(count($r))
$contact_record = $r[0];
$post_type == notags(trim($_POST['type']));
if($post_type == 'net-comment') {
if($parent_item !== null && $parent_item['type'] != 'remote')
$post_type = 'wall-comment';
}
$notify_type = (($parent) ? 'comment-new' : 'wall-new' );
if(($_POST['type'] == 'wall') || ($_POST['type'] == 'wall-comment')) {
if(($_POST['type'] == 'wall') || ($_POST['type'] == 'wall-comment') || ($_POST['type'] == 'net-comment')) {
do {
$dups = false;