Merge pull request #8073 from annando/issue-8067
Issue 8067: Posts from Mastodon had been wrongly parsed
This commit is contained in:
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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user