From 9a3a4def3dcd40fad9946037441e55586b3dd815 Mon Sep 17 00:00:00 2001 From: Michael Date: Fri, 23 Jul 2021 12:38:29 +0000 Subject: [PATCH] "hovercard" is "hcard" --- src/Module/{HoverCard.php => HCard.php} | 7 ++++--- static/routes.config.php | 2 +- 2 files changed, 5 insertions(+), 4 deletions(-) rename src/Module/{HoverCard.php => HCard.php} (96%) diff --git a/src/Module/HoverCard.php b/src/Module/HCard.php similarity index 96% rename from src/Module/HoverCard.php rename to src/Module/HCard.php index f86bb9597..e348f2ff5 100644 --- a/src/Module/HoverCard.php +++ b/src/Module/HCard.php @@ -29,9 +29,10 @@ use Friendica\Model\User; use Friendica\Network\HTTPException; /** - * Loads a profile for the HoverCard view + * Loads a profile for the hCard page + * @see http://microformats.org/wiki/hcard */ -class HoverCard extends BaseModule +class HCard extends BaseModule { public static function rawContent(array $parameters = []) { @@ -41,7 +42,7 @@ class HoverCard extends BaseModule // A logged in user views a profile of a user $nickname = $a->user['nickname']; } elseif (empty($parameters['action'])) { - // Show the profile hovercard + // Show the profile hCard $nickname = $parameters['profile']; } else { throw new HTTPException\NotFoundException(DI::l10n()->t('No profile')); diff --git a/static/routes.config.php b/static/routes.config.php index b4b9c6a53..9780bf3cb 100644 --- a/static/routes.config.php +++ b/static/routes.config.php @@ -292,7 +292,7 @@ return [ '/hashtag' => [Module\Hashtag::class, [R::GET]], '/help[/{doc:.+}]' => [Module\Help::class, [R::GET]], '/home' => [Module\Home::class, [R::GET]], - '/hcard/{profile}[/{action}]' => [Module\HoverCard::class, [R::GET]], + '/hcard/{profile}[/{action}]' => [Module\HCard::class, [R::GET]], '/inbox[/{nickname}]' => [Module\ActivityPub\Inbox::class, [R::GET, R::POST]], '/invite' => [Module\Invite::class, [R::GET, R::POST]],