Issue 8067: Posts from Mastodon had been wrongly parsed

This commit is contained in:
Michael 2020-01-07 00:16:42 +00:00
parent d6357c97e5
commit 5b755f0f23

View file

@ -907,18 +907,6 @@ class Receiver
return $object_data; 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; return $object_data;
} }