Merge pull request #12673 from annando/andstatus-api
API: Accept "redirect_uris" as both array and string
This commit is contained in:
commit
d63aca97b8
|
@ -70,10 +70,9 @@ class Error extends BaseFactory
|
||||||
System::jsonError(422, $errorObj->toArray());
|
System::jsonError(422, $errorObj->toArray());
|
||||||
}
|
}
|
||||||
|
|
||||||
public function Unauthorized(string $error = '')
|
public function Unauthorized(string $error = '', string $error_description = '')
|
||||||
{
|
{
|
||||||
$error = $error ?: $this->l10n->t('Unauthorized');
|
$error = $error ?: $this->l10n->t('Unauthorized');
|
||||||
$error_description = '';
|
|
||||||
$errorObj = new \Friendica\Object\Api\Mastodon\Error($error, $error_description);
|
$errorObj = new \Friendica\Object\Api\Mastodon\Error($error, $error_description);
|
||||||
|
|
||||||
$this->logError(401, $error);
|
$this->logError(401, $error);
|
||||||
|
|
|
@ -31,6 +31,7 @@ use Psr\Http\Message\ResponseInterface;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Apps class to register new OAuth clients
|
* Apps class to register new OAuth clients
|
||||||
|
* @see https://docs.joinmastodon.org/methods/apps/#create
|
||||||
*/
|
*/
|
||||||
class Apps extends BaseApi
|
class Apps extends BaseApi
|
||||||
{
|
{
|
||||||
|
@ -44,6 +45,10 @@ class Apps extends BaseApi
|
||||||
*/
|
*/
|
||||||
protected function post(array $request = [])
|
protected function post(array $request = [])
|
||||||
{
|
{
|
||||||
|
if (!empty($request['redirect_uris']) && is_array($request['redirect_uris'])) {
|
||||||
|
$request['redirect_uris'] = $request['redirect_uris'][0];
|
||||||
|
}
|
||||||
|
|
||||||
$request = $this->getRequest([
|
$request = $this->getRequest([
|
||||||
'client_name' => '',
|
'client_name' => '',
|
||||||
'redirect_uris' => '',
|
'redirect_uris' => '',
|
||||||
|
@ -58,6 +63,10 @@ class Apps extends BaseApi
|
||||||
if (!empty($postrequest) && is_array($postrequest)) {
|
if (!empty($postrequest) && is_array($postrequest)) {
|
||||||
$request = array_merge($request, $postrequest);
|
$request = array_merge($request, $postrequest);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (!empty($request['redirect_uris']) && is_array($request['redirect_uris'])) {
|
||||||
|
$request['redirect_uris'] = $request['redirect_uris'][0];
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (empty($request['client_name']) || empty($request['redirect_uris'])) {
|
if (empty($request['client_name']) || empty($request['redirect_uris'])) {
|
||||||
|
|
|
@ -32,7 +32,7 @@ use Friendica\Util\DateTimeFormat;
|
||||||
use Psr\Http\Message\ResponseInterface;
|
use Psr\Http\Message\ResponseInterface;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @see https://docs.joinmastodon.org/spec/oauth/
|
* @see https://docs.joinmastodon.org/methods/oauth/#token
|
||||||
* @see https://aaronparecki.com/oauth-2-simplified/
|
* @see https://aaronparecki.com/oauth-2-simplified/
|
||||||
*/
|
*/
|
||||||
class Token extends BaseApi
|
class Token extends BaseApi
|
||||||
|
@ -69,13 +69,13 @@ class Token extends BaseApi
|
||||||
}
|
}
|
||||||
|
|
||||||
if (empty($request['client_id']) || empty($request['client_secret'])) {
|
if (empty($request['client_id']) || empty($request['client_secret'])) {
|
||||||
Logger::warning('Incomplete request data', ['request' => $_REQUEST]);
|
Logger::warning('Incomplete request data', ['request' => $request]);
|
||||||
DI::mstdnError()->UnprocessableEntity(DI::l10n()->t('Incomplete request data'));
|
DI::mstdnError()->Unauthorized('invalid_client', DI::l10n()->t('Incomplete request data'));
|
||||||
}
|
}
|
||||||
|
|
||||||
$application = OAuth::getApplication($request['client_id'], $request['client_secret'], $request['redirect_uri']);
|
$application = OAuth::getApplication($request['client_id'], $request['client_secret'], $request['redirect_uri']);
|
||||||
if (empty($application)) {
|
if (empty($application)) {
|
||||||
DI::mstdnError()->UnprocessableEntity();
|
DI::mstdnError()->Unauthorized('invalid_client', DI::l10n()->t('Invalid data or unknown client'));
|
||||||
}
|
}
|
||||||
|
|
||||||
if ($request['grant_type'] == 'client_credentials') {
|
if ($request['grant_type'] == 'client_credentials') {
|
||||||
|
|
|
@ -8,7 +8,7 @@ msgid ""
|
||||||
msgstr ""
|
msgstr ""
|
||||||
"Project-Id-Version: 2023.03-dev\n"
|
"Project-Id-Version: 2023.03-dev\n"
|
||||||
"Report-Msgid-Bugs-To: \n"
|
"Report-Msgid-Bugs-To: \n"
|
||||||
"POT-Creation-Date: 2023-01-12 07:05+0000\n"
|
"POT-Creation-Date: 2023-01-14 21:19+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"
|
||||||
|
@ -245,7 +245,7 @@ msgstr ""
|
||||||
msgid "Discard"
|
msgid "Discard"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: mod/message.php:136 src/Content/Nav.php:318 view/theme/frio/theme.php:248
|
#: mod/message.php:136 src/Content/Nav.php:318 view/theme/frio/theme.php:241
|
||||||
msgid "Messages"
|
msgid "Messages"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
|
@ -625,7 +625,7 @@ msgstr ""
|
||||||
#: src/Module/Moderation/Users/Active.php:136
|
#: src/Module/Moderation/Users/Active.php:136
|
||||||
#: src/Module/Moderation/Users/Blocked.php:136
|
#: src/Module/Moderation/Users/Blocked.php:136
|
||||||
#: src/Module/Moderation/Users/Index.php:151
|
#: src/Module/Moderation/Users/Index.php:151
|
||||||
#: src/Module/Settings/Connectors.php:242
|
#: src/Module/Settings/Connectors.php:239
|
||||||
msgid "Delete"
|
msgid "Delete"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
|
@ -657,23 +657,23 @@ msgstr ""
|
||||||
msgid "Apologies but the website is unavailable at the moment."
|
msgid "Apologies but the website is unavailable at the moment."
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: src/App/Page.php:246
|
#: src/App/Page.php:248
|
||||||
msgid "Delete this item?"
|
msgid "Delete this item?"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: src/App/Page.php:247
|
#: src/App/Page.php:249
|
||||||
msgid ""
|
msgid ""
|
||||||
"Block this author? They won't be able to follow you nor see your public "
|
"Block this author? They won't be able to follow you nor see your public "
|
||||||
"posts, and you won't be able to see their posts and their notifications."
|
"posts, and you won't be able to see their posts and their notifications."
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: src/App/Page.php:248
|
#: src/App/Page.php:250
|
||||||
msgid ""
|
msgid ""
|
||||||
"Ignore this author? You won't be able to see their posts and their "
|
"Ignore this author? You won't be able to see their posts and their "
|
||||||
"notifications."
|
"notifications."
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: src/App/Page.php:318
|
#: src/App/Page.php:320
|
||||||
msgid "toggle mobile"
|
msgid "toggle mobile"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
|
@ -1540,7 +1540,7 @@ msgstr ""
|
||||||
msgid "%1$s tagged %2$s's %3$s with %4$s"
|
msgid "%1$s tagged %2$s's %3$s with %4$s"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: src/Content/Item.php:419 view/theme/frio/theme.php:269
|
#: src/Content/Item.php:419 view/theme/frio/theme.php:262
|
||||||
msgid "Follow Thread"
|
msgid "Follow Thread"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
|
@ -1652,42 +1652,42 @@ msgstr ""
|
||||||
#: src/Content/Nav.php:230 src/Module/BaseProfile.php:49
|
#: src/Content/Nav.php:230 src/Module/BaseProfile.php:49
|
||||||
#: src/Module/BaseSettings.php:100 src/Module/Contact.php:476
|
#: src/Module/BaseSettings.php:100 src/Module/Contact.php:476
|
||||||
#: src/Module/Contact/Profile.php:399 src/Module/Profile/Profile.php:268
|
#: src/Module/Contact/Profile.php:399 src/Module/Profile/Profile.php:268
|
||||||
#: src/Module/Welcome.php:57 view/theme/frio/theme.php:237
|
#: src/Module/Welcome.php:57 view/theme/frio/theme.php:230
|
||||||
msgid "Profile"
|
msgid "Profile"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: src/Content/Nav.php:230 view/theme/frio/theme.php:237
|
#: src/Content/Nav.php:230 view/theme/frio/theme.php:230
|
||||||
msgid "Your profile page"
|
msgid "Your profile page"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: src/Content/Nav.php:231 src/Module/BaseProfile.php:65
|
#: src/Content/Nav.php:231 src/Module/BaseProfile.php:65
|
||||||
#: src/Module/Media/Photo/Browser.php:74 view/theme/frio/theme.php:241
|
#: src/Module/Media/Photo/Browser.php:74 view/theme/frio/theme.php:234
|
||||||
msgid "Photos"
|
msgid "Photos"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: src/Content/Nav.php:231 view/theme/frio/theme.php:241
|
#: src/Content/Nav.php:231 view/theme/frio/theme.php:234
|
||||||
msgid "Your photos"
|
msgid "Your photos"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: src/Content/Nav.php:232 src/Module/BaseProfile.php:73
|
#: src/Content/Nav.php:232 src/Module/BaseProfile.php:73
|
||||||
#: src/Module/BaseProfile.php:76 src/Module/Contact.php:500
|
#: src/Module/BaseProfile.php:76 src/Module/Contact.php:500
|
||||||
#: view/theme/frio/theme.php:242
|
#: view/theme/frio/theme.php:235
|
||||||
msgid "Media"
|
msgid "Media"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: src/Content/Nav.php:232 view/theme/frio/theme.php:242
|
#: src/Content/Nav.php:232 view/theme/frio/theme.php:235
|
||||||
msgid "Your postings with media"
|
msgid "Your postings with media"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: src/Content/Nav.php:233 src/Content/Nav.php:293
|
#: src/Content/Nav.php:233 src/Content/Nav.php:293
|
||||||
#: src/Module/BaseProfile.php:85 src/Module/BaseProfile.php:88
|
#: src/Module/BaseProfile.php:85 src/Module/BaseProfile.php:88
|
||||||
#: src/Module/BaseProfile.php:96 src/Module/BaseProfile.php:99
|
#: src/Module/BaseProfile.php:96 src/Module/BaseProfile.php:99
|
||||||
#: src/Module/Settings/Display.php:252 view/theme/frio/theme.php:243
|
#: src/Module/Settings/Display.php:252 view/theme/frio/theme.php:236
|
||||||
#: view/theme/frio/theme.php:247
|
#: view/theme/frio/theme.php:240
|
||||||
msgid "Calendar"
|
msgid "Calendar"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: src/Content/Nav.php:233 view/theme/frio/theme.php:243
|
#: src/Content/Nav.php:233 view/theme/frio/theme.php:236
|
||||||
msgid "Your calendar"
|
msgid "Your calendar"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
|
@ -1757,7 +1757,7 @@ msgstr ""
|
||||||
#: src/Content/Nav.php:274 src/Content/Nav.php:329
|
#: src/Content/Nav.php:274 src/Content/Nav.php:329
|
||||||
#: src/Content/Text/HTML.php:901 src/Module/BaseProfile.php:127
|
#: src/Content/Text/HTML.php:901 src/Module/BaseProfile.php:127
|
||||||
#: src/Module/BaseProfile.php:130 src/Module/Contact.php:411
|
#: src/Module/BaseProfile.php:130 src/Module/Contact.php:411
|
||||||
#: src/Module/Contact.php:507 view/theme/frio/theme.php:250
|
#: src/Module/Contact.php:507 view/theme/frio/theme.php:243
|
||||||
msgid "Contacts"
|
msgid "Contacts"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
|
@ -1796,15 +1796,15 @@ msgstr ""
|
||||||
msgid "Terms of Service of this Friendica instance"
|
msgid "Terms of Service of this Friendica instance"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: src/Content/Nav.php:306 view/theme/frio/theme.php:246
|
#: src/Content/Nav.php:306 view/theme/frio/theme.php:239
|
||||||
msgid "Network"
|
msgid "Network"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: src/Content/Nav.php:306 view/theme/frio/theme.php:246
|
#: src/Content/Nav.php:306 view/theme/frio/theme.php:239
|
||||||
msgid "Conversations from your friends"
|
msgid "Conversations from your friends"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: src/Content/Nav.php:308 view/theme/frio/theme.php:236
|
#: src/Content/Nav.php:308 view/theme/frio/theme.php:229
|
||||||
msgid "Your posts and conversations"
|
msgid "Your posts and conversations"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
|
@ -1825,7 +1825,7 @@ msgstr ""
|
||||||
msgid "See all notifications"
|
msgid "See all notifications"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: src/Content/Nav.php:315 src/Module/Settings/Connectors.php:242
|
#: src/Content/Nav.php:315 src/Module/Settings/Connectors.php:239
|
||||||
msgid "Mark as seen"
|
msgid "Mark as seen"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
|
@ -1833,7 +1833,7 @@ msgstr ""
|
||||||
msgid "Mark all system notifications as seen"
|
msgid "Mark all system notifications as seen"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: src/Content/Nav.php:318 view/theme/frio/theme.php:248
|
#: src/Content/Nav.php:318 view/theme/frio/theme.php:241
|
||||||
msgid "Private mail"
|
msgid "Private mail"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
|
@ -1855,15 +1855,15 @@ msgstr ""
|
||||||
|
|
||||||
#: src/Content/Nav.php:327 src/Module/Admin/Addons/Details.php:114
|
#: src/Content/Nav.php:327 src/Module/Admin/Addons/Details.php:114
|
||||||
#: src/Module/Admin/Themes/Details.php:93 src/Module/BaseSettings.php:170
|
#: src/Module/Admin/Themes/Details.php:93 src/Module/BaseSettings.php:170
|
||||||
#: src/Module/Welcome.php:52 view/theme/frio/theme.php:249
|
#: src/Module/Welcome.php:52 view/theme/frio/theme.php:242
|
||||||
msgid "Settings"
|
msgid "Settings"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: src/Content/Nav.php:327 view/theme/frio/theme.php:249
|
#: src/Content/Nav.php:327 view/theme/frio/theme.php:242
|
||||||
msgid "Account settings"
|
msgid "Account settings"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: src/Content/Nav.php:329 view/theme/frio/theme.php:250
|
#: src/Content/Nav.php:329 view/theme/frio/theme.php:243
|
||||||
msgid "Manage/edit friends and contacts"
|
msgid "Manage/edit friends and contacts"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
|
@ -2868,12 +2868,12 @@ msgstr ""
|
||||||
msgid "Unauthorized"
|
msgid "Unauthorized"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: src/Factory/Api/Mastodon/Error.php:85
|
#: src/Factory/Api/Mastodon/Error.php:84
|
||||||
msgid ""
|
msgid ""
|
||||||
"Token is not authorized with a valid user or is missing a required scope"
|
"Token is not authorized with a valid user or is missing a required scope"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: src/Factory/Api/Mastodon/Error.php:95
|
#: src/Factory/Api/Mastodon/Error.php:94
|
||||||
msgid "Internal Server Error"
|
msgid "Internal Server Error"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
|
@ -2896,68 +2896,68 @@ msgstr ""
|
||||||
msgid "Forum"
|
msgid "Forum"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: src/Model/Contact.php:2929
|
#: src/Model/Contact.php:2931
|
||||||
msgid "Disallowed profile URL."
|
msgid "Disallowed profile URL."
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: src/Model/Contact.php:2934 src/Module/Friendica.php:83
|
#: src/Model/Contact.php:2936 src/Module/Friendica.php:83
|
||||||
msgid "Blocked domain"
|
msgid "Blocked domain"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: src/Model/Contact.php:2939
|
#: src/Model/Contact.php:2941
|
||||||
msgid "Connect URL missing."
|
msgid "Connect URL missing."
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: src/Model/Contact.php:2948
|
#: src/Model/Contact.php:2950
|
||||||
msgid ""
|
msgid ""
|
||||||
"The contact could not be added. Please check the relevant network "
|
"The contact could not be added. Please check the relevant network "
|
||||||
"credentials in your Settings -> Social Networks page."
|
"credentials in your Settings -> Social Networks page."
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: src/Model/Contact.php:2966
|
#: src/Model/Contact.php:2968
|
||||||
#, php-format
|
#, php-format
|
||||||
msgid "Expected network %s does not match actual network %s"
|
msgid "Expected network %s does not match actual network %s"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: src/Model/Contact.php:2983
|
#: src/Model/Contact.php:2985
|
||||||
msgid "The profile address specified does not provide adequate information."
|
msgid "The profile address specified does not provide adequate information."
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: src/Model/Contact.php:2985
|
#: src/Model/Contact.php:2987
|
||||||
msgid "No compatible communication protocols or feeds were discovered."
|
msgid "No compatible communication protocols or feeds were discovered."
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: src/Model/Contact.php:2988
|
#: src/Model/Contact.php:2990
|
||||||
msgid "An author or name was not found."
|
msgid "An author or name was not found."
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: src/Model/Contact.php:2991
|
#: src/Model/Contact.php:2993
|
||||||
msgid "No browser URL could be matched to this address."
|
msgid "No browser URL could be matched to this address."
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: src/Model/Contact.php:2994
|
#: src/Model/Contact.php:2996
|
||||||
msgid ""
|
msgid ""
|
||||||
"Unable to match @-style Identity Address with a known protocol or email "
|
"Unable to match @-style Identity Address with a known protocol or email "
|
||||||
"contact."
|
"contact."
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: src/Model/Contact.php:2995
|
#: src/Model/Contact.php:2997
|
||||||
msgid "Use mailto: in front of address to force email check."
|
msgid "Use mailto: in front of address to force email check."
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: src/Model/Contact.php:3001
|
#: src/Model/Contact.php:3003
|
||||||
msgid ""
|
msgid ""
|
||||||
"The profile address specified belongs to a network which has been disabled "
|
"The profile address specified belongs to a network which has been disabled "
|
||||||
"on this site."
|
"on this site."
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: src/Model/Contact.php:3006
|
#: src/Model/Contact.php:3008
|
||||||
msgid ""
|
msgid ""
|
||||||
"Limited profile. This person will be unable to receive direct/personal "
|
"Limited profile. This person will be unable to receive direct/personal "
|
||||||
"notifications from you."
|
"notifications from you."
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: src/Model/Contact.php:3071
|
#: src/Model/Contact.php:3073
|
||||||
msgid "Unable to retrieve contact information."
|
msgid "Unable to retrieve contact information."
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
|
@ -3663,9 +3663,9 @@ msgstr ""
|
||||||
#: src/Module/Admin/Addons/Index.php:69 src/Module/Admin/Features.php:87
|
#: src/Module/Admin/Addons/Index.php:69 src/Module/Admin/Features.php:87
|
||||||
#: src/Module/Admin/Logs/Settings.php:81 src/Module/Admin/Site.php:438
|
#: src/Module/Admin/Logs/Settings.php:81 src/Module/Admin/Site.php:438
|
||||||
#: src/Module/Admin/Themes/Index.php:113 src/Module/Admin/Tos.php:86
|
#: src/Module/Admin/Themes/Index.php:113 src/Module/Admin/Tos.php:86
|
||||||
#: src/Module/Settings/Account.php:560 src/Module/Settings/Addons.php:81
|
#: src/Module/Settings/Account.php:560 src/Module/Settings/Addons.php:78
|
||||||
#: src/Module/Settings/Connectors.php:159
|
#: src/Module/Settings/Connectors.php:156
|
||||||
#: src/Module/Settings/Connectors.php:244
|
#: src/Module/Settings/Connectors.php:241
|
||||||
#: src/Module/Settings/Delegation.php:169 src/Module/Settings/Display.php:247
|
#: src/Module/Settings/Delegation.php:169 src/Module/Settings/Display.php:247
|
||||||
#: src/Module/Settings/Features.php:76
|
#: src/Module/Settings/Features.php:76
|
||||||
msgid "Save Settings"
|
msgid "Save Settings"
|
||||||
|
@ -5253,7 +5253,7 @@ msgstr ""
|
||||||
msgid "API endpoint %s %s is not implemented but might be in the future."
|
msgid "API endpoint %s %s is not implemented but might be in the future."
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: src/Module/Api/Mastodon/Apps.php:64
|
#: src/Module/Api/Mastodon/Apps.php:73
|
||||||
msgid "Missing parameters"
|
msgid "Missing parameters"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
|
@ -5477,7 +5477,7 @@ msgstr ""
|
||||||
msgid "Display"
|
msgid "Display"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: src/Module/BaseSettings.php:127 src/Module/Settings/Connectors.php:203
|
#: src/Module/BaseSettings.php:127 src/Module/Settings/Connectors.php:200
|
||||||
msgid "Social Networks"
|
msgid "Social Networks"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
|
@ -6168,7 +6168,7 @@ msgid "Actions"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: src/Module/Contact/Profile.php:397
|
#: src/Module/Contact/Profile.php:397
|
||||||
#: src/Module/Settings/TwoFactor/Index.php:119 view/theme/frio/theme.php:236
|
#: src/Module/Settings/TwoFactor/Index.php:119 view/theme/frio/theme.php:229
|
||||||
msgid "Status"
|
msgid "Status"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
|
@ -8082,6 +8082,10 @@ msgid ""
|
||||||
"close this window: %s"
|
"close this window: %s"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
|
#: src/Module/OAuth/Token.php:78
|
||||||
|
msgid "Invalid data or unknown client"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
#: src/Module/OAuth/Token.php:97
|
#: src/Module/OAuth/Token.php:97
|
||||||
msgid "Unsupported or missing grant type"
|
msgid "Unsupported or missing grant type"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
@ -9356,81 +9360,81 @@ msgstr ""
|
||||||
msgid "Resend relocate message to contacts"
|
msgid "Resend relocate message to contacts"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: src/Module/Settings/Addons.php:89
|
#: src/Module/Settings/Addons.php:86
|
||||||
msgid "Addon Settings"
|
msgid "Addon Settings"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: src/Module/Settings/Addons.php:90
|
#: src/Module/Settings/Addons.php:87
|
||||||
msgid "No Addon settings configured"
|
msgid "No Addon settings configured"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: src/Module/Settings/Connectors.php:121
|
#: src/Module/Settings/Connectors.php:118
|
||||||
msgid "Failed to connect with email account using the settings provided."
|
msgid "Failed to connect with email account using the settings provided."
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: src/Module/Settings/Connectors.php:165
|
#: src/Module/Settings/Connectors.php:162
|
||||||
#: src/Module/Settings/Connectors.php:166
|
#: src/Module/Settings/Connectors.php:163
|
||||||
msgid "Diaspora (Socialhome, Hubzilla)"
|
msgid "Diaspora (Socialhome, Hubzilla)"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: src/Module/Settings/Connectors.php:165
|
#: src/Module/Settings/Connectors.php:162
|
||||||
#: src/Module/Settings/Connectors.php:169
|
#: src/Module/Settings/Connectors.php:166
|
||||||
#, php-format
|
#, php-format
|
||||||
msgid "Built-in support for %s connectivity is enabled"
|
msgid "Built-in support for %s connectivity is enabled"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: src/Module/Settings/Connectors.php:166
|
#: src/Module/Settings/Connectors.php:163
|
||||||
#: src/Module/Settings/Connectors.php:168
|
#: src/Module/Settings/Connectors.php:165
|
||||||
#, php-format
|
#, php-format
|
||||||
msgid "Built-in support for %s connectivity is disabled"
|
msgid "Built-in support for %s connectivity is disabled"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: src/Module/Settings/Connectors.php:168
|
#: src/Module/Settings/Connectors.php:165
|
||||||
#: src/Module/Settings/Connectors.php:169
|
#: src/Module/Settings/Connectors.php:166
|
||||||
msgid "OStatus (GNU Social)"
|
msgid "OStatus (GNU Social)"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: src/Module/Settings/Connectors.php:181
|
#: src/Module/Settings/Connectors.php:178
|
||||||
msgid "Email access is disabled on this site."
|
msgid "Email access is disabled on this site."
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: src/Module/Settings/Connectors.php:196
|
#: src/Module/Settings/Connectors.php:193
|
||||||
#: src/Module/Settings/Connectors.php:242
|
#: src/Module/Settings/Connectors.php:239
|
||||||
msgid "None"
|
msgid "None"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: src/Module/Settings/Connectors.php:208
|
#: src/Module/Settings/Connectors.php:205
|
||||||
msgid "General Social Media Settings"
|
msgid "General Social Media Settings"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: src/Module/Settings/Connectors.php:211
|
#: src/Module/Settings/Connectors.php:208
|
||||||
msgid "Followed content scope"
|
msgid "Followed content scope"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: src/Module/Settings/Connectors.php:213
|
#: src/Module/Settings/Connectors.php:210
|
||||||
msgid ""
|
msgid ""
|
||||||
"By default, conversations in which your follows participated but didn't "
|
"By default, conversations in which your follows participated but didn't "
|
||||||
"start will be shown in your timeline. You can turn this behavior off, or "
|
"start will be shown in your timeline. You can turn this behavior off, or "
|
||||||
"expand it to the conversations in which your follows liked a post."
|
"expand it to the conversations in which your follows liked a post."
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: src/Module/Settings/Connectors.php:215
|
#: src/Module/Settings/Connectors.php:212
|
||||||
msgid "Only conversations my follows started"
|
msgid "Only conversations my follows started"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: src/Module/Settings/Connectors.php:216
|
#: src/Module/Settings/Connectors.php:213
|
||||||
msgid "Conversations my follows started or commented on (default)"
|
msgid "Conversations my follows started or commented on (default)"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: src/Module/Settings/Connectors.php:217
|
#: src/Module/Settings/Connectors.php:214
|
||||||
msgid "Any conversation my follows interacted with, including likes"
|
msgid "Any conversation my follows interacted with, including likes"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: src/Module/Settings/Connectors.php:220
|
#: src/Module/Settings/Connectors.php:217
|
||||||
msgid "Enable Content Warning"
|
msgid "Enable Content Warning"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: src/Module/Settings/Connectors.php:220
|
#: src/Module/Settings/Connectors.php:217
|
||||||
msgid ""
|
msgid ""
|
||||||
"Users on networks like Mastodon or Pleroma are able to set a content warning "
|
"Users on networks like Mastodon or Pleroma are able to set a content warning "
|
||||||
"field which collapse their post by default. This enables the automatic "
|
"field which collapse their post by default. This enables the automatic "
|
||||||
|
@ -9438,104 +9442,104 @@ msgid ""
|
||||||
"affect any other content filtering you eventually set up."
|
"affect any other content filtering you eventually set up."
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: src/Module/Settings/Connectors.php:221
|
#: src/Module/Settings/Connectors.php:218
|
||||||
msgid "Enable intelligent shortening"
|
msgid "Enable intelligent shortening"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: src/Module/Settings/Connectors.php:221
|
#: src/Module/Settings/Connectors.php:218
|
||||||
msgid ""
|
msgid ""
|
||||||
"Normally the system tries to find the best link to add to shortened posts. "
|
"Normally the system tries to find the best link to add to shortened posts. "
|
||||||
"If disabled, every shortened post will always point to the original "
|
"If disabled, every shortened post will always point to the original "
|
||||||
"friendica post."
|
"friendica post."
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: src/Module/Settings/Connectors.php:222
|
#: src/Module/Settings/Connectors.php:219
|
||||||
msgid "Enable simple text shortening"
|
msgid "Enable simple text shortening"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: src/Module/Settings/Connectors.php:222
|
#: src/Module/Settings/Connectors.php:219
|
||||||
msgid ""
|
msgid ""
|
||||||
"Normally the system shortens posts at the next line feed. If this option is "
|
"Normally the system shortens posts at the next line feed. If this option is "
|
||||||
"enabled then the system will shorten the text at the maximum character limit."
|
"enabled then the system will shorten the text at the maximum character limit."
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: src/Module/Settings/Connectors.php:223
|
#: src/Module/Settings/Connectors.php:220
|
||||||
msgid "Attach the link title"
|
msgid "Attach the link title"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: src/Module/Settings/Connectors.php:223
|
#: src/Module/Settings/Connectors.php:220
|
||||||
msgid ""
|
msgid ""
|
||||||
"When activated, the title of the attached link will be added as a title on "
|
"When activated, the title of the attached link will be added as a title on "
|
||||||
"posts to Diaspora. This is mostly helpful with \"remote-self\" contacts that "
|
"posts to Diaspora. This is mostly helpful with \"remote-self\" contacts that "
|
||||||
"share feed content."
|
"share feed content."
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: src/Module/Settings/Connectors.php:224
|
#: src/Module/Settings/Connectors.php:221
|
||||||
msgid "Your legacy ActivityPub/GNU Social account"
|
msgid "Your legacy ActivityPub/GNU Social account"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: src/Module/Settings/Connectors.php:224
|
#: src/Module/Settings/Connectors.php:221
|
||||||
msgid ""
|
msgid ""
|
||||||
"If you enter your old account name from an ActivityPub based system or your "
|
"If you enter your old account name from an ActivityPub based system or your "
|
||||||
"GNU Social/Statusnet account name here (in the format user@domain.tld), your "
|
"GNU Social/Statusnet account name here (in the format user@domain.tld), your "
|
||||||
"contacts will be added automatically. The field will be emptied when done."
|
"contacts will be added automatically. The field will be emptied when done."
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: src/Module/Settings/Connectors.php:227
|
#: src/Module/Settings/Connectors.php:224
|
||||||
msgid "Repair OStatus subscriptions"
|
msgid "Repair OStatus subscriptions"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: src/Module/Settings/Connectors.php:231
|
#: src/Module/Settings/Connectors.php:228
|
||||||
msgid "Email/Mailbox Setup"
|
msgid "Email/Mailbox Setup"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: src/Module/Settings/Connectors.php:232
|
#: src/Module/Settings/Connectors.php:229
|
||||||
msgid ""
|
msgid ""
|
||||||
"If you wish to communicate with email contacts using this service "
|
"If you wish to communicate with email contacts using this service "
|
||||||
"(optional), please specify how to connect to your mailbox."
|
"(optional), please specify how to connect to your mailbox."
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: src/Module/Settings/Connectors.php:233
|
#: src/Module/Settings/Connectors.php:230
|
||||||
msgid "Last successful email check:"
|
msgid "Last successful email check:"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: src/Module/Settings/Connectors.php:235
|
#: src/Module/Settings/Connectors.php:232
|
||||||
msgid "IMAP server name:"
|
msgid "IMAP server name:"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: src/Module/Settings/Connectors.php:236
|
#: src/Module/Settings/Connectors.php:233
|
||||||
msgid "IMAP port:"
|
msgid "IMAP port:"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: src/Module/Settings/Connectors.php:237
|
#: src/Module/Settings/Connectors.php:234
|
||||||
msgid "Security:"
|
msgid "Security:"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: src/Module/Settings/Connectors.php:238
|
#: src/Module/Settings/Connectors.php:235
|
||||||
msgid "Email login name:"
|
msgid "Email login name:"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: src/Module/Settings/Connectors.php:239
|
#: src/Module/Settings/Connectors.php:236
|
||||||
msgid "Email password:"
|
msgid "Email password:"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: src/Module/Settings/Connectors.php:240
|
#: src/Module/Settings/Connectors.php:237
|
||||||
msgid "Reply-to address:"
|
msgid "Reply-to address:"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: src/Module/Settings/Connectors.php:241
|
#: src/Module/Settings/Connectors.php:238
|
||||||
msgid "Send public posts to all email contacts:"
|
msgid "Send public posts to all email contacts:"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: src/Module/Settings/Connectors.php:242
|
#: src/Module/Settings/Connectors.php:239
|
||||||
msgid "Action after import:"
|
msgid "Action after import:"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: src/Module/Settings/Connectors.php:242
|
#: src/Module/Settings/Connectors.php:239
|
||||||
msgid "Move to folder"
|
msgid "Move to folder"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: src/Module/Settings/Connectors.php:243
|
#: src/Module/Settings/Connectors.php:240
|
||||||
msgid "Move to folder:"
|
msgid "Move to folder:"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
|
@ -11659,11 +11663,11 @@ msgstr ""
|
||||||
msgid "Back to top"
|
msgid "Back to top"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: view/theme/frio/theme.php:218
|
#: view/theme/frio/theme.php:211
|
||||||
msgid "Guest"
|
msgid "Guest"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: view/theme/frio/theme.php:221
|
#: view/theme/frio/theme.php:214
|
||||||
msgid "Visitor"
|
msgid "Visitor"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user