Merge pull request #9989 from annando/issue-9912

Issue 9912: Process Markdown content from Peertube
This commit is contained in:
Tobias Diekershoff 2021-03-06 14:04:28 +01:00 committed by GitHub
commit 30ae5220b5
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
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 '';
}