sforkowany z mirror/friendica
Merge pull request #8073 from annando/issue-8067
Issue 8067: Posts from Mastodon had been wrongly parsed2022.09-rc
commit
5cc2dc7ca3
|
@ -907,18 +907,6 @@ class Receiver
|
|||
return $object_data;
|
||||
}
|
||||
|
||||
$markdown = JsonLD::fetchElement($object, 'as:content', '@value', '@language', 'text/markdown');
|
||||
if (!empty($markdown)) {
|
||||
$object_data['source'] = Markdown::toBBCode($markdown);
|
||||
return $object_data;
|
||||
}
|
||||
|
||||
$html = JsonLD::fetchElement($object, 'as:content', '@value', '@language', 'text/html');
|
||||
if (!empty($html)) {
|
||||
$object_data['source'] = HTML::toBBCode($markdown);
|
||||
return $object_data;
|
||||
}
|
||||
|
||||
return $object_data;
|
||||
}
|
||||
|
||||
|
|
Ładowanie…
Reference in New Issue