mirror of
https://github.com/friendica/friendica
synced 2024-11-10 11:02:53 +00:00
Issue 8067: Posts from Mastodon had been wrongly parsed
This commit is contained in:
parent
d6357c97e5
commit
5b755f0f23
1 changed files with 0 additions and 12 deletions
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue