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 f86bb95973..e348f2ff5b 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 b4b9c6a535..9780bf3cbe 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]], diff --git a/view/lang/C/messages.po b/view/lang/C/messages.po index 8906eae77d..779126dac2 100644 --- a/view/lang/C/messages.po +++ b/view/lang/C/messages.po @@ -864,7 +864,7 @@ msgstr "" msgid "Access denied." msgstr "" -#: mod/cal.php:72 mod/cal.php:133 src/Module/HoverCard.php:53 +#: mod/cal.php:72 mod/cal.php:133 src/Module/HCard.php:54 #: src/Module/Profile/Common.php:41 src/Module/Profile/Common.php:53 #: src/Module/Profile/Contacts.php:40 src/Module/Profile/Contacts.php:51 #: src/Module/Profile/Status.php:58 src/Module/Register.php:254 @@ -8208,6 +8208,10 @@ msgstr "" msgid "Add contact to group" msgstr "" +#: src/Module/HCard.php:48 +msgid "No profile" +msgstr "" + #: src/Module/HTTPException/MethodNotAllowed.php:32 msgid "Method Not Allowed." msgstr "" @@ -8221,10 +8225,6 @@ msgstr "" msgid "Welcome to %s" msgstr "" -#: src/Module/HoverCard.php:47 -msgid "No profile" -msgstr "" - #: src/Module/Install.php:188 msgid "Friendica Communications Server - Setup" msgstr ""