From 112dbf3abd543152ad4ed3f444331ac88c1f4c46 Mon Sep 17 00:00:00 2001 From: friendica Date: Thu, 9 May 2013 18:08:00 -0700 Subject: get search page working with live-update and endless scroll, still not perfect - there may be duplicated content and possibly unauthorised content and 'timeago' not working correctly - will deal with those later, but at least you can see results. --- mod/item.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'mod/item.php') diff --git a/mod/item.php b/mod/item.php index 814c2f0c6..a8d1bdf31 100644 --- a/mod/item.php +++ b/mod/item.php @@ -60,6 +60,7 @@ function item_post(&$a) { $origin = (($api_source && array_key_exists('origin',$_REQUEST)) ? intval($_REQUEST['origin']) : 1); $owner_hash = null; + $message_id = ((x($_REQUEST,'message_id') && $api_source) ? strip_tags($_REQUEST['message_id']) : ''); $profile_uid = ((x($_REQUEST,'profile_uid')) ? intval($_REQUEST['profile_uid']) : 0); $post_id = ((x($_REQUEST,'post_id')) ? intval($_REQUEST['post_id']) : 0); @@ -481,7 +482,8 @@ function item_post(&$a) { $notify_type = (($parent) ? 'comment-new' : 'wall-new' ); - $mid = item_message_id(); + $mid = (($message_id) ? $message_id : item_message_id()); + $parent_mid = $mid; if($parent_item) $parent_mid = $parent_item['mid']; -- cgit v1.2.3