Issue 9912: Process Markdown content from Peertube

This commit is contained in:
Michael 2021-03-06 08:43:25 +00:00
parent f24deebc7f
commit 8c748f03f9
3 changed files with 65 additions and 4 deletions

View file

@ -1503,6 +1503,10 @@ class Item
*/
private static function getLanguage(array $item)
{
if (!empty($item['language'])) {
return $item['language'];
}
if (!in_array($item['gravity'], [GRAVITY_PARENT, GRAVITY_COMMENT]) || empty($item['body'])) {
return '';
}