From 17ae9b71af8501cdd5facda26649399652dc2cdc Mon Sep 17 00:00:00 2001 From: Michael Date: Fri, 9 Jul 2021 04:42:01 +0000 Subject: [PATCH] Avoid error on empty content --- src/Content/Text/BBCode.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Content/Text/BBCode.php b/src/Content/Text/BBCode.php index 4440f22423..a86a0d155c 100644 --- a/src/Content/Text/BBCode.php +++ b/src/Content/Text/BBCode.php @@ -1287,7 +1287,7 @@ class BBCode * @return string * @throws \Friendica\Network\HTTPException\InternalServerErrorException */ - public static function convertForItem(int $uriid, string $text, int $simple_html = self::INTERNAL) + public static function convertForItem(int $uriid = 0, string $text = null, int $simple_html = self::INTERNAL) { $try_oembed = ($simple_html == self::INTERNAL);