commit
fa28eb650f
3 changed files with 18 additions and 17 deletions
|
@ -29,9 +29,10 @@ use Friendica\Model\User;
|
||||||
use Friendica\Network\HTTPException;
|
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 = [])
|
public static function rawContent(array $parameters = [])
|
||||||
{
|
{
|
||||||
|
@ -41,7 +42,7 @@ class HoverCard extends BaseModule
|
||||||
// A logged in user views a profile of a user
|
// A logged in user views a profile of a user
|
||||||
$nickname = $a->user['nickname'];
|
$nickname = $a->user['nickname'];
|
||||||
} elseif (empty($parameters['action'])) {
|
} elseif (empty($parameters['action'])) {
|
||||||
// Show the profile hovercard
|
// Show the profile hCard
|
||||||
$nickname = $parameters['profile'];
|
$nickname = $parameters['profile'];
|
||||||
} else {
|
} else {
|
||||||
throw new HTTPException\NotFoundException(DI::l10n()->t('No profile'));
|
throw new HTTPException\NotFoundException(DI::l10n()->t('No profile'));
|
|
@ -292,7 +292,7 @@ return [
|
||||||
'/hashtag' => [Module\Hashtag::class, [R::GET]],
|
'/hashtag' => [Module\Hashtag::class, [R::GET]],
|
||||||
'/help[/{doc:.+}]' => [Module\Help::class, [R::GET]],
|
'/help[/{doc:.+}]' => [Module\Help::class, [R::GET]],
|
||||||
'/home' => [Module\Home::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]],
|
'/inbox[/{nickname}]' => [Module\ActivityPub\Inbox::class, [R::GET, R::POST]],
|
||||||
'/invite' => [Module\Invite::class, [R::GET, R::POST]],
|
'/invite' => [Module\Invite::class, [R::GET, R::POST]],
|
||||||
|
|
||||||
|
|
|
@ -8,7 +8,7 @@ msgid ""
|
||||||
msgstr ""
|
msgstr ""
|
||||||
"Project-Id-Version: 2021.09-dev\n"
|
"Project-Id-Version: 2021.09-dev\n"
|
||||||
"Report-Msgid-Bugs-To: \n"
|
"Report-Msgid-Bugs-To: \n"
|
||||||
"POT-Creation-Date: 2021-07-20 17:39+0000\n"
|
"POT-Creation-Date: 2021-07-23 12:43+0000\n"
|
||||||
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
|
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
|
||||||
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
|
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
|
||||||
"Language-Team: LANGUAGE <LL@li.org>\n"
|
"Language-Team: LANGUAGE <LL@li.org>\n"
|
||||||
|
@ -864,7 +864,7 @@ msgstr ""
|
||||||
msgid "Access denied."
|
msgid "Access denied."
|
||||||
msgstr ""
|
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/Common.php:41 src/Module/Profile/Common.php:53
|
||||||
#: src/Module/Profile/Contacts.php:40 src/Module/Profile/Contacts.php:51
|
#: src/Module/Profile/Contacts.php:40 src/Module/Profile/Contacts.php:51
|
||||||
#: src/Module/Profile/Status.php:58 src/Module/Register.php:254
|
#: src/Module/Profile/Status.php:58 src/Module/Register.php:254
|
||||||
|
@ -3387,8 +3387,8 @@ msgstr ""
|
||||||
msgid "last"
|
msgid "last"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: src/Content/Text/BBCode.php:953 src/Content/Text/BBCode.php:1656
|
#: src/Content/Text/BBCode.php:953 src/Content/Text/BBCode.php:1689
|
||||||
#: src/Content/Text/BBCode.php:1657
|
#: src/Content/Text/BBCode.php:1690
|
||||||
msgid "Image/photo"
|
msgid "Image/photo"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
|
@ -3403,23 +3403,23 @@ msgstr ""
|
||||||
msgid "Link to source"
|
msgid "Link to source"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: src/Content/Text/BBCode.php:1574 src/Content/Text/HTML.php:951
|
#: src/Content/Text/BBCode.php:1607 src/Content/Text/HTML.php:951
|
||||||
msgid "Click to open/close"
|
msgid "Click to open/close"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: src/Content/Text/BBCode.php:1605
|
#: src/Content/Text/BBCode.php:1638
|
||||||
msgid "$1 wrote:"
|
msgid "$1 wrote:"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: src/Content/Text/BBCode.php:1659 src/Content/Text/BBCode.php:1660
|
#: src/Content/Text/BBCode.php:1692 src/Content/Text/BBCode.php:1693
|
||||||
msgid "Encrypted content"
|
msgid "Encrypted content"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: src/Content/Text/BBCode.php:1873
|
#: src/Content/Text/BBCode.php:1909
|
||||||
msgid "Invalid source protocol"
|
msgid "Invalid source protocol"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: src/Content/Text/BBCode.php:1888
|
#: src/Content/Text/BBCode.php:1924
|
||||||
msgid "Invalid link protocol"
|
msgid "Invalid link protocol"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
|
@ -8208,6 +8208,10 @@ msgstr ""
|
||||||
msgid "Add contact to group"
|
msgid "Add contact to group"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
|
#: src/Module/HCard.php:48
|
||||||
|
msgid "No profile"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
#: src/Module/HTTPException/MethodNotAllowed.php:32
|
#: src/Module/HTTPException/MethodNotAllowed.php:32
|
||||||
msgid "Method Not Allowed."
|
msgid "Method Not Allowed."
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
@ -8221,10 +8225,6 @@ msgstr ""
|
||||||
msgid "Welcome to %s"
|
msgid "Welcome to %s"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: src/Module/HoverCard.php:47
|
|
||||||
msgid "No profile"
|
|
||||||
msgstr ""
|
|
||||||
|
|
||||||
#: src/Module/Install.php:188
|
#: src/Module/Install.php:188
|
||||||
msgid "Friendica Communications Server - Setup"
|
msgid "Friendica Communications Server - Setup"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
Loading…
Reference in a new issue