diff options
author | Mike Macgirvin <mike@macgirvin.com> | 2010-07-27 22:32:21 -0700 |
---|---|---|
committer | Mike Macgirvin <mike@macgirvin.com> | 2010-07-27 22:32:21 -0700 |
commit | fa154248dcd62677544aa9ac7d82ddcd3df92f6e (patch) | |
tree | 57e47aafd0faa2b462aeb7bea864b562577333d9 /mod/item.php | |
parent | 2e5fb9c37e76c20ea0c25e1215a549b561dc68a8 (diff) | |
download | volse-hubzilla-fa154248dcd62677544aa9ac7d82ddcd3df92f6e.tar.gz volse-hubzilla-fa154248dcd62677544aa9ac7d82ddcd3df92f6e.tar.bz2 volse-hubzilla-fa154248dcd62677544aa9ac7d82ddcd3df92f6e.zip |
working on readonly contact attribute
Diffstat (limited to 'mod/item.php')
-rw-r--r-- | mod/item.php | 8 |
1 files changed, 6 insertions, 2 deletions
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' ); |