mirror of
https://github.com/friendica/friendica
synced 2025-04-25 09:10:11 +00:00
Simplify image url
This commit is contained in:
parent
7c266be206
commit
1010443031
4 changed files with 6 additions and 15 deletions
|
@ -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) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue