mirror of
https://github.com/friendica/friendica
synced 2025-05-05 15:04:09 +02:00
Maybe fix for:
"Argument 1 passed to Friendica\Model\ItemURI::getIdByURI() must be of the type string, null given, called in Processor.php line 1219"
This commit is contained in:
parent
9691bb06fb
commit
41f34c4261
3 changed files with 6 additions and 2 deletions
|
@ -65,6 +65,10 @@ class ItemURI
|
|||
*/
|
||||
public static function getIdByURI(string $uri): int
|
||||
{
|
||||
if (empty($uri)) {
|
||||
return 0;
|
||||
}
|
||||
|
||||
// If the URI gets too long we only take the first parts and hope for best
|
||||
$uri = substr($uri, 0, 255);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue