- $_SESSION['authenticated'] = true;
- $_SESSION['uid'] = $uid;
-
- unset($_REQUEST);
- $_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 (!empty($item['url']) && strstr($item['url'], 'facebook.com')) {
- $hash = hash('ripemd128', $item['url']);
- $_REQUEST['extid'] = Protocol::FACEBOOK;
- $_REQUEST['message_id'] = Item::newURI($uid, Protocol::FACEBOOK . ':' . $hash);
- }
+ $post = [];
+ $post['uid'] = $uid;
+ $post['app'] = 'IFTTT';
+ $post['title'] = '';
+ $post['body'] = $item['msg'];
+ //$post['date'] = $item['date'];
+ //$post['uri'] = $item['url'];