Avoid error on empty content

This commit is contained in:
Michael 2021-07-09 04:42:01 +00:00
parent 88f147c6a7
commit 17ae9b71af

View file

@ -1287,7 +1287,7 @@ class BBCode
* @return string * @return string
* @throws \Friendica\Network\HTTPException\InternalServerErrorException * @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); $try_oembed = ($simple_html == self::INTERNAL);