mirror of
https://github.com/friendica/friendica
synced 2025-04-29 15:04:22 +02: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
|
@ -313,7 +313,7 @@ class Feed
|
|||
$item['uri'] = $guid;
|
||||
|
||||
// Don't use the GUID value directly but instead use it as a basis for the GUID
|
||||
$item['guid'] = Item::guidFromUri($guid, parse_url($guid, PHP_URL_HOST) ?? parse_url($item['plink'], PHP_URL_HOST) ?? '');
|
||||
$item['guid'] = Item::guidFromUri($guid, parse_url($guid, PHP_URL_HOST) ?? parse_url($item['plink'], PHP_URL_HOST));
|
||||
}
|
||||
|
||||
if (empty($item['uri'])) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue