Simplify image url

This commit is contained in:
Michael 2023-05-17 20:30:45 +00:00
parent 7c266be206
commit 1010443031
4 changed files with 6 additions and 15 deletions

View file

@ -1004,7 +1004,7 @@ class Media
}
if ($media['type'] == self::IMAGE) {
$body .= "\n" . Images::getBBCodeByUrl($media['url'], $media['preview'], $media['description']);
$body .= "\n" . Images::getBBCodeByUrl($media['url'], $media['preview'], $media['description'] ?? '');
} elseif ($media['type'] == self::AUDIO) {
$body .= "\n[audio]" . $media['url'] . "[/audio]\n";
} elseif ($media['type'] == self::VIDEO) {