From: Hypolite Petovan Date: Sat, 9 Mar 2019 14:04:43 +0000 (-0500) Subject: Remove test code in ActivityPub\Processor X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=d0b2ed7966651ccc83d81ed2266067caf6172973;p=friendica.git Remove test code in ActivityPub\Processor --- 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; - } }