mirror of
https://github.com/friendica/friendica
synced 2025-04-27 08:30:10 +00:00
moved get_guid to System::createGUID
This commit is contained in:
parent
3a179860e5
commit
c829e43725
21 changed files with 105 additions and 88 deletions
|
@ -1075,7 +1075,7 @@ class Item extends BaseObject
|
|||
} elseif (!empty($item['uri'])) {
|
||||
$guid = self::guidFromUri($item['uri'], $prefix_host);
|
||||
} else {
|
||||
$guid = get_guid(32, hash('crc32', $prefix_host));
|
||||
$guid = System::createGUID(32, hash('crc32', $prefix_host));
|
||||
}
|
||||
|
||||
return $guid;
|
||||
|
@ -2172,7 +2172,7 @@ class Item extends BaseObject
|
|||
public static function newURI($uid, $guid = "")
|
||||
{
|
||||
if ($guid == "") {
|
||||
$guid = get_guid(32);
|
||||
$guid = System::createGUID(32);
|
||||
}
|
||||
|
||||
$hostname = self::getApp()->get_hostname();
|
||||
|
@ -2496,7 +2496,7 @@ class Item extends BaseObject
|
|||
}
|
||||
|
||||
if ($contact['network'] != NETWORK_FEED) {
|
||||
$datarray["guid"] = get_guid(32);
|
||||
$datarray["guid"] = System::createGUID(32);
|
||||
unset($datarray["plink"]);
|
||||
$datarray["uri"] = self::newURI($contact['uid'], $datarray["guid"]);
|
||||
$datarray["parent-uri"] = $datarray["uri"];
|
||||
|
@ -2933,7 +2933,7 @@ class Item extends BaseObject
|
|||
$objtype = $item['resource-id'] ? ACTIVITY_OBJ_IMAGE : ACTIVITY_OBJ_NOTE ;
|
||||
|
||||
$new_item = [
|
||||
'guid' => get_guid(32),
|
||||
'guid' => System::createGUID(32),
|
||||
'uri' => self::newURI($item['uid']),
|
||||
'uid' => $item['uid'],
|
||||
'contact-id' => $item_contact_id,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue