diff options
author | friendica <info@friendica.com> | 2013-05-09 18:08:00 -0700 |
---|---|---|
committer | friendica <info@friendica.com> | 2013-05-09 18:08:00 -0700 |
commit | 112dbf3abd543152ad4ed3f444331ac88c1f4c46 (patch) | |
tree | bafcc41537c25afca1ba94564ade219b06203595 /mod/item.php | |
parent | 735140e8d9f86c5ee0cbc29b50129e1abb73a647 (diff) | |
download | volse-hubzilla-112dbf3abd543152ad4ed3f444331ac88c1f4c46.tar.gz volse-hubzilla-112dbf3abd543152ad4ed3f444331ac88c1f4c46.tar.bz2 volse-hubzilla-112dbf3abd543152ad4ed3f444331ac88c1f4c46.zip |
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.
Diffstat (limited to 'mod/item.php')
-rw-r--r-- | mod/item.php | 4 |
1 files changed, 3 insertions, 1 deletions
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']; |