New function for generating item URIs

This commit is contained in:
Michael 2018-06-16 06:46:25 +00:00
parent 49558d7d22
commit e1714de8ad
5 changed files with 7 additions and 5 deletions

View file

@ -15,6 +15,7 @@ use Friendica\Core\Addon;
use Friendica\Core\L10n;
use Friendica\Core\PConfig;
use Friendica\Database\DBM;
use Friendica\Model\Item;
function ifttt_install()
{
@ -182,7 +183,7 @@ function ifttt_message($uid, $item)
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);
$_REQUEST['message_id'] = Item::newURI($uid, NETWORK_FACEBOOK . ':' . $hash);
}
if ($item['type'] == 'link') {