Emergency fixes to fix a bunch of fatal errors

This commit is contained in:
Michael 2022-07-17 11:47:12 +00:00
parent 974564f75e
commit 2ddf37f32d
6 changed files with 27 additions and 23 deletions

View file

@ -359,7 +359,7 @@ class Contact
* @throws HTTPException\InternalServerErrorException
* @throws \ImagickException
*/
public static function isFollowerByURL(string $url, uid $uid): bool
public static function isFollowerByURL(string $url, int $uid): bool
{
$cid = self::getIdForURL($url, $uid);
@ -1169,11 +1169,11 @@ class Contact
* @throws HTTPException\InternalServerErrorException
* @throws \ImagickException
*/
public static function getIdForURL(string $url, int $uid = 0, $update = null, array $default = []): int
public static function getIdForURL(string $url = null, int $uid = 0, $update = null, array $default = []): int
{
$contact_id = 0;
if ($url == '') {
if (empty($url)) {
Logger::notice('Empty url, quitting', ['url' => $url, 'user' => $uid, 'default' => $default]);
return 0;
}