From fa154248dcd62677544aa9ac7d82ddcd3df92f6e Mon Sep 17 00:00:00 2001 From: Mike Macgirvin Date: Tue, 27 Jul 2010 22:32:21 -0700 Subject: working on readonly contact attribute --- mod/item.php | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'mod/item.php') diff --git a/mod/item.php b/mod/item.php index 71d8afd24..49067d940 100644 --- a/mod/item.php +++ b/mod/item.php @@ -96,8 +96,12 @@ function item_post(&$a) { $post_type == notags(trim($_POST['type'])); if($post_type == 'net-comment') { - if($parent_item !== null && $parent_item['type'] != 'remote') - $post_type = 'wall-comment'; + if($parent_item !== null) { + if($parent_item['type'] == 'remote') + $post_type = 'remote-comment'; + else + $post_type = 'wall-comment'; + } } $notify_type = (($parent) ? 'comment-new' : 'wall-new' ); -- cgit v1.2.3