From 6cad529c383732edc2d9459c4e898eb741c82c76 Mon Sep 17 00:00:00 2001 From: Michael Vogel Date: Sun, 13 Dec 2020 19:42:45 +0100 Subject: [PATCH] IFTTT: Set the extid, removed legacy Facebook stuff --- ifttt/ifttt.php | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/ifttt/ifttt.php b/ifttt/ifttt.php index e534b705..a494b5f7 100644 --- a/ifttt/ifttt.php +++ b/ifttt/ifttt.php @@ -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); }