Merge pull request #8073 from annando/issue-8067

Issue 8067: Posts from Mastodon had been wrongly parsed
This commit is contained in:
Hypolite Petovan 2020-01-06 19:55:58 -05:00 committed by GitHub
commit 5cc2dc7ca3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 0 additions and 12 deletions

View File

@ -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;
}