- $_SESSION['authenticated'] = true;
- $_SESSION['uid'] = $uid;
-
- unset($_REQUEST);
- $_REQUEST['api_source'] = true;
- $_REQUEST['profile_uid'] = $uid;
- //$_REQUEST['source'] = 'StatusNet';
- $_REQUEST['source'] = $post->source;
- $_REQUEST['extid'] = Protocol::STATUSNET;
-
- if (isset($post->id)) {
- $_REQUEST['message_id'] = Item::newURI(Protocol::STATUSNET . ':' . $post->id);
- }
-
- //$_REQUEST['date'] = $post->created_at;
+ $postarray['uid'] = $uid;
+ $postarray['app'] = $post->source;
+ $postarray['extid'] = Protocol::STATUSNET;