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;
- }
}