mirror of
https://github.com/friendica/friendica
synced 2024-12-25 06:00:17 +00:00
Remove test code in ActivityPub\Processor
This commit is contained in:
parent
70782b3977
commit
d0b2ed7966
1 changed files with 0 additions and 26 deletions
|
@ -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 a new issue