mirror of
https://git.friendi.ca/friendica/friendica-addons.git
synced 2025-07-11 10:58:48 +00:00
New function for generating item URIs
This commit is contained in:
parent
49558d7d22
commit
e1714de8ad
5 changed files with 7 additions and 5 deletions
|
@ -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') {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue