Merge pull request #13978 from annando/issue-13972

Default behaviour for adding media types
This commit is contained in:
Hypolite Petovan 2024-03-12 20:06:24 +00:00 committed by GitHub
commit 57187f26ae
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -912,6 +912,8 @@ class Media
$body .= "\n[audio]" . $media['url'] . "[/audio]\n";
} elseif ($media['type'] == self::VIDEO) {
$body .= "\n[video]" . $media['url'] . "[/video]\n";
} else {
$body .= "\n[url]" . $media['url'] . "[/url]\n";
}
}