- $_SESSION['authenticated'] = true;
- $_SESSION['uid'] = $uid;
-
- unset($_REQUEST);
- $_REQUEST['type'] = 'wall';
- $_REQUEST['api_source'] = true;
- $_REQUEST['profile_uid'] = $uid;
- $_REQUEST['source'] = 'IFTTT';
- $_REQUEST['title'] = '';
- $_REQUEST['body'] = $item['msg'];
- //$_REQUEST['date'] = $item['date'];
- //$_REQUEST['uri'] = $item['url'];
-
- if (strstr($item['url'], 'facebook.com')) {
- $hash = hash('ripemd128', item['url']);
- $_REQUEST['extid'] = NETWORK_FACEBOOK;
- $_REQUEST['message_id'] = Item::newURI($uid, NETWORK_FACEBOOK . ':' . $hash);
- }
+ $post = [];
+ $post['uid'] = $uid;
+ $post['app'] = 'IFTTT';
+ $post['title'] = '';
+ $post['body'] = $item['msg'];
+ //$post['date'] = $item['date'];
+ //$post['uri'] = $item['url'];