"hovercard" is "hcard"

This commit is contained in:
Michael 2021-07-23 12:38:29 +00:00
parent fe8e71216d
commit 9a3a4def3d
2 changed files with 5 additions and 4 deletions

View file

@ -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'));

View file

@ -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]],