[TEMPLATES][Cards][Profile] Provide both actor uri and url, as well as full mention guidance

This commit is contained in:
2021-12-27 04:13:09 +00:00
parent eb761609aa
commit 80afc0fa6c
9 changed files with 69 additions and 50 deletions

View File

@@ -500,6 +500,11 @@ class FreeNetwork extends Component
return false;
}
public static function mentionToName(string $nickname, string $uri): string
{
return '@' . $nickname . '@' . parse_url($uri, \PHP_URL_HOST);
}
public function onPluginVersion(array &$versions): bool
{
$versions[] = [