mirror of
https://github.com/friendica/friendica
synced 2025-04-25 13:10:11 +00:00
Merge pull request #9989 from annando/issue-9912
Issue 9912: Process Markdown content from Peertube
This commit is contained in:
commit
30ae5220b5
3 changed files with 65 additions and 4 deletions
|
@ -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 '';
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue