mirror of
https://github.com/friendica/friendica
synced 2025-04-23 19:50:11 +00:00
Changes:
- Made Item::guidFromUri()'s $host parameter optional (allowing null) - added some type-hints - added documentation - this may fix reported issue in #11630
This commit is contained in:
parent
dbc1ebbb5c
commit
82bb36e13d
3 changed files with 49 additions and 12 deletions
|
@ -1830,11 +1830,11 @@ class Item
|
|||
* Posts that are created on this system are using System::createUUID.
|
||||
* Received ActivityPub posts are using Processor::getGUIDByURL.
|
||||
*
|
||||
* @param string $uri uri of an item entry
|
||||
* @param string $host hostname for the GUID prefix
|
||||
* @return string unique guid
|
||||
* @param string $uri uri of an item entry
|
||||
* @param string|null $host hostname for the GUID prefix
|
||||
* @return string Unique guid
|
||||
*/
|
||||
public static function guidFromUri(string $uri, string $host): string
|
||||
public static function guidFromUri(string $uri, string $host = null): string
|
||||
{
|
||||
// Our regular guid routine is using this kind of prefix as well
|
||||
// We have to avoid that different routines could accidentally create the same value
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue