mirror of
https://git.friendi.ca/friendica/friendica-addons.git
synced 2024-11-25 05:43:41 +00:00
IFTTT: Set the extid, removed legacy Facebook stuff
This commit is contained in:
parent
99e96d8923
commit
6cad529c38
1 changed files with 2 additions and 6 deletions
|
@ -169,12 +169,6 @@ function ifttt_message($uid, $item)
|
|||
//$post['date'] = $item['date'];
|
||||
//$post['uri'] = $item['url'];
|
||||
|
||||
if (!empty($item['url']) && strstr($item['url'], 'facebook.com')) {
|
||||
$hash = hash('ripemd128', $item['url']);
|
||||
$post['extid'] = Protocol::FACEBOOK;
|
||||
$post['message_id'] = Item::newURI($uid, Protocol::FACEBOOK . ':' . $hash);
|
||||
}
|
||||
|
||||
if ($item['type'] == 'link') {
|
||||
$link = $item['link'];
|
||||
$data = PageInfo::queryUrl($item['link']);
|
||||
|
@ -197,5 +191,7 @@ function ifttt_message($uid, $item)
|
|||
$link = hash('ripemd128', $item['msg']);
|
||||
}
|
||||
|
||||
$post['extid'] = $link;
|
||||
|
||||
Post\Delayed::add($link, $post, PRIORITY_MEDIUM, true);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue