diff options
author | Mike Macgirvin <mike@macgirvin.com> | 2010-07-25 22:51:45 -0700 |
---|---|---|
committer | Mike Macgirvin <mike@macgirvin.com> | 2010-07-25 22:51:45 -0700 |
commit | 9f81c3345b40d635a34f0448dd625b17f20508c3 (patch) | |
tree | 6f284d707b8d05fd6c16baf6c1a69aea7f8dfcc6 /mod/item.php | |
parent | 52a2c7eb46ea3b9509e48f29eca6f1c398a85538 (diff) | |
download | volse-hubzilla-9f81c3345b40d635a34f0448dd625b17f20508c3.tar.gz volse-hubzilla-9f81c3345b40d635a34f0448dd625b17f20508c3.tar.bz2 volse-hubzilla-9f81c3345b40d635a34f0448dd625b17f20508c3.zip |
fixup of some nits with live update and remote comment display on profile page
Diffstat (limited to 'mod/item.php')
-rw-r--r-- | mod/item.php | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/mod/item.php b/mod/item.php index e0497af7a..c8758726f 100644 --- a/mod/item.php +++ b/mod/item.php @@ -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; |