From: Michael Vogel Date: Sun, 13 Dec 2020 18:42:45 +0000 (+0100) Subject: IFTTT: Set the extid, removed legacy Facebook stuff X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=6cad529c383732edc2d9459c4e898eb741c82c76;p=friendica-addons.git IFTTT: Set the extid, removed legacy Facebook stuff --- 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); }