]> git.mxchange.org Git - friendica.git/commitdiff
Issue 8067: Posts from Mastodon had been wrongly parsed
authorMichael <heluecht@pirati.ca>
Tue, 7 Jan 2020 00:16:42 +0000 (00:16 +0000)
committerMichael <heluecht@pirati.ca>
Tue, 7 Jan 2020 00:16:42 +0000 (00:16 +0000)
src/Protocol/ActivityPub/Receiver.php

index 685f3a85e2b13e1bc2af97c09cfb1f0ea4515ae9..e34aad53aac63718fde739063a3479756053bbc2 100644 (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;
        }