mirror of
https://git.friendi.ca/friendica/friendica-addons.git
synced 2025-07-11 19:08:49 +00:00
The URI of mirrored posts are now looking more standard
This commit is contained in:
parent
5fb7ef40fd
commit
b59c0e54a8
4 changed files with 14 additions and 7 deletions
|
@ -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"]);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue