mirror of
https://github.com/friendica/friendica
synced 2025-04-28 00:30:10 +00:00
UUID is now createUUID
This commit is contained in:
parent
5639054699
commit
cb9be8a7ab
12 changed files with 20 additions and 20 deletions
|
@ -1205,7 +1205,7 @@ class Item extends BaseObject
|
|||
} elseif (!empty($item['uri'])) {
|
||||
$guid = self::guidFromUri($item['uri'], $prefix_host);
|
||||
} else {
|
||||
$guid = System::UUID(hash('crc32', $prefix_host));
|
||||
$guid = System::createUUID(hash('crc32', $prefix_host));
|
||||
}
|
||||
|
||||
return $guid;
|
||||
|
@ -2359,7 +2359,7 @@ class Item extends BaseObject
|
|||
public static function newURI($uid, $guid = "")
|
||||
{
|
||||
if ($guid == "") {
|
||||
$guid = System::UUID();
|
||||
$guid = System::createUUID();
|
||||
}
|
||||
|
||||
return self::getApp()->get_baseurl() . '/object/' . $guid;
|
||||
|
@ -2686,7 +2686,7 @@ class Item extends BaseObject
|
|||
}
|
||||
|
||||
if ($contact['network'] != Protocol::FEED) {
|
||||
$datarray["guid"] = System::UUID();
|
||||
$datarray["guid"] = System::createUUID();
|
||||
unset($datarray["plink"]);
|
||||
$datarray["uri"] = self::newURI($contact['uid'], $datarray["guid"]);
|
||||
$datarray["parent-uri"] = $datarray["uri"];
|
||||
|
@ -3115,7 +3115,7 @@ class Item extends BaseObject
|
|||
$objtype = $item['resource-id'] ? ACTIVITY_OBJ_IMAGE : ACTIVITY_OBJ_NOTE ;
|
||||
|
||||
$new_item = [
|
||||
'guid' => System::UUID(),
|
||||
'guid' => System::createUUID(),
|
||||
'uri' => self::newURI($item['uid']),
|
||||
'uid' => $item['uid'],
|
||||
'contact-id' => $item_contact_id,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue