Merge pull request #9989 from annando/issue-9912
Issue 9912: Process Markdown content from Peertube
This commit is contained in:
@@ -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 '';
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user