From 5b755f0f2393f98c2d97d16d338c10a2815fac25 Mon Sep 17 00:00:00 2001 From: Michael Date: Tue, 7 Jan 2020 00:16:42 +0000 Subject: [PATCH] Issue 8067: Posts from Mastodon had been wrongly parsed --- src/Protocol/ActivityPub/Receiver.php | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/src/Protocol/ActivityPub/Receiver.php b/src/Protocol/ActivityPub/Receiver.php index 685f3a85e2..e34aad53aa 100644 --- a/src/Protocol/ActivityPub/Receiver.php +++ b/src/Protocol/ActivityPub/Receiver.php @@ -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; } -- 2.39.5