From d0b2ed7966651ccc83d81ed2266067caf6172973 Mon Sep 17 00:00:00 2001 From: Hypolite Petovan Date: Sat, 9 Mar 2019 09:04:43 -0500 Subject: [PATCH] Remove test code in ActivityPub\Processor --- src/Protocol/ActivityPub/Processor.php | 26 -------------------------- 1 file changed, 26 deletions(-) diff --git a/src/Protocol/ActivityPub/Processor.php b/src/Protocol/ActivityPub/Processor.php index abd36f3014..1850c572a4 100644 --- a/src/Protocol/ActivityPub/Processor.php +++ b/src/Protocol/ActivityPub/Processor.php @@ -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; - } } -- 2.39.5