]> git.mxchange.org Git - friendica-addons.git/blobdiff - ifttt/ifttt.php
mailstream: update version number to v1.1
[friendica-addons.git] / ifttt / ifttt.php
index 38236509570412638e098a6af85b5ad9ee2026b6..35f3ccc6c7edea9fd2797eeff7a25f32c444888d 100644 (file)
@@ -155,8 +155,11 @@ function ifttt_message($uid, $item) {
        //$_REQUEST["date"] = $item["date"];
        //$_REQUEST["uri"] = $item["url"];
 
-       if (strstr($item["url"], "facebook.com"))
+       if (strstr($item["url"], "facebook.com")) {
+               $hash = hash("ripemd128", item["url"]);
                $_REQUEST["extid"] = NETWORK_FACEBOOK;
+               $_REQUEST['message_id'] = item_new_uri($a->get_hostname(), $uid, NETWORK_FACEBOOK.":".$hash);
+       }
 
        if ($item["type"] == "link") {
                $data = query_page_info($item["link"]);