Remove test code in ActivityPub\Processor
This commit is contained in:
parent
70782b3977
commit
d0b2ed7966
|
@ -743,30 +743,4 @@ class Processor
|
||||||
|
|
||||||
return $activity_tags;
|
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;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user