]> git.mxchange.org Git - friendica.git/commitdiff
Remove test code in ActivityPub\Processor
authorHypolite Petovan <hypolite@mrpetovan.com>
Sat, 9 Mar 2019 14:04:43 +0000 (09:04 -0500)
committerHypolite Petovan <hypolite@mrpetovan.com>
Sat, 9 Mar 2019 14:04:43 +0000 (09:04 -0500)
src/Protocol/ActivityPub/Processor.php

index abd36f3014809b1405a3380579459a2ed31e032f..1850c572a47817f9589e43d3ebb84c123f74cc46 100644 (file)
@@ -743,30 +743,4 @@ class Processor
 
                return $activity_tags;
        }
-
-       public static function testImplicitMentions($item, $source)
-       {
-               $parent = Item::selectFirst(['id', 'guid', 'author-link', 'alias'], ['uri' => $item['thr-parent']]);
-
-               $implicit_mentions = self::getImplicitMentionList($parent);
-               var_dump($implicit_mentions);
-
-               $object = json_decode($source, true)['object'];
-               var_dump($object);
-
-               $content = HTML::toBBCode($object['content']);
-               $content = self::convertMentions($content);
-
-               $activity = [
-                       'tags' => $object['tag'],
-                       'content' => $content
-               ];
-
-               var_dump($activity);
-
-               $activity['content'] = Processor::removeImplicitMentionsFromBody($activity['content'], $implicit_mentions);
-               $activity['tags'] = Processor::convertImplicitMentionsInTags($activity['tags'], $implicit_mentions);
-
-               return $activity;
-       }
 }