From 9f81c3345b40d635a34f0448dd625b17f20508c3 Mon Sep 17 00:00:00 2001 From: Mike Macgirvin Date: Sun, 25 Jul 2010 22:51:45 -0700 Subject: fixup of some nits with live update and remote comment display on profile page --- mod/network.php | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'mod/network.php') diff --git a/mod/network.php b/mod/network.php index 262ecc20b..a91760f7f 100644 --- a/mod/network.php +++ b/mod/network.php @@ -166,6 +166,7 @@ function network_content(&$a, $update = false) { if($item['last-child']) { $comment = replace_macros($cmnt_tpl,array( '$return_path' => $_SESSION['return_url'], + '$type' => 'net-comment', '$id' => $item['item_id'], '$parent' => $item['parent'], '$profile_uid' => $_SESSION['uid'], @@ -173,6 +174,10 @@ function network_content(&$a, $update = false) { )); } + + $drop = replace_macros(file_get_contents('view/wall_item_drop.tpl'), array('$id' => $item['id'])); + + if(($item['contact-uid'] == $_SESSION['uid']) && (strlen($item['dfrn-id'])) && (! $item['self'] )) $profile_url = $redirect_url; @@ -209,6 +214,7 @@ function network_content(&$a, $update = false) { '$owner_url' => $owner_url, '$owner_photo' => $owner_photo, '$owner_name' => $owner_name, + '$drop' => $drop, '$comment' => $comment )); } -- cgit v1.2.3