The URI of mirrored posts are now looking more standard

This commit is contained in:
Michael 2016-11-15 06:36:52 +00:00
parent 5fb7ef40fd
commit b59c0e54a8
4 changed files with 14 additions and 7 deletions

View 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"]);