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

@ -16,6 +16,7 @@ use Friendica\Core\PConfig;
use Friendica\Object\Image;
use Friendica\Util\DateTimeFormat;
use Friendica\Util\Network;
use Friendica\Model\Item;
require_once 'mod/share.php';
require_once 'mod/parse_url.php';
@ -176,7 +177,7 @@ function fromgplus_post($a, $uid, $source, $body, $location, $coord, $id) {
$_REQUEST['extid'] = NETWORK_GPLUS;
if (isset($id)) {
$_REQUEST['message_id'] = item_new_uri($a->get_hostname(), $uid, NETWORK_GPLUS.':'.$id);
$_REQUEST['message_id'] = Item::newURI($uid, NETWORK_GPLUS.':'.$id);
}
// $_REQUEST['verb']