mirror of
https://github.com/friendica/friendica
synced 2024-12-22 23:20:16 +00:00
Merge branch 'develop' into refactoring-of-app-class
This commit is contained in:
commit
5696a5249f
4 changed files with 48 additions and 56 deletions
|
@ -55,6 +55,13 @@ steps:
|
||||||
- '.composer'
|
- '.composer'
|
||||||
volumes:
|
volumes:
|
||||||
- /tmp/drone-cache:/tmp/cache
|
- /tmp/drone-cache:/tmp/cache
|
||||||
|
phpstan:
|
||||||
|
image: friendicaci/php${PHP_MAJOR_VERSION}:php${PHP_VERSION}
|
||||||
|
when:
|
||||||
|
matrix:
|
||||||
|
PHP_MAJOR_VERSION: 8.2
|
||||||
|
commands:
|
||||||
|
- bin/composer.phar run phpstan;
|
||||||
test:
|
test:
|
||||||
image: friendicaci/php${PHP_MAJOR_VERSION}:php${PHP_VERSION}
|
image: friendicaci/php${PHP_MAJOR_VERSION}:php${PHP_VERSION}
|
||||||
environment:
|
environment:
|
||||||
|
|
|
@ -41,7 +41,6 @@ class APCuCache extends AbstractCache implements ICanCacheInMemory
|
||||||
$ns = $this->getCacheKey($prefix ?? '');
|
$ns = $this->getCacheKey($prefix ?? '');
|
||||||
$ns = preg_quote($ns, '/');
|
$ns = preg_quote($ns, '/');
|
||||||
|
|
||||||
/** @phpstan-ignore-next-line see https://github.com/friendica/friendica-addons/pull/1363 */
|
|
||||||
$iterator = new \APCUIterator('/^' . $ns . '/', APC_ITER_KEY);
|
$iterator = new \APCUIterator('/^' . $ns . '/', APC_ITER_KEY);
|
||||||
|
|
||||||
$keys = [];
|
$keys = [];
|
||||||
|
@ -119,7 +118,6 @@ class APCuCache extends AbstractCache implements ICanCacheInMemory
|
||||||
$prefix = $this->getPrefix();
|
$prefix = $this->getPrefix();
|
||||||
$prefix = preg_quote($prefix, '/');
|
$prefix = preg_quote($prefix, '/');
|
||||||
|
|
||||||
/** @phpstan-ignore-next-line see https://github.com/friendica/friendica-addons/pull/1363 */
|
|
||||||
$iterator = new \APCUIterator('/^' . $prefix . '/', APC_ITER_KEY);
|
$iterator = new \APCUIterator('/^' . $prefix . '/', APC_ITER_KEY);
|
||||||
|
|
||||||
return apcu_delete($iterator);
|
return apcu_delete($iterator);
|
||||||
|
|
|
@ -234,9 +234,6 @@ class Babel extends BaseModule
|
||||||
case 'twitter':
|
case 'twitter':
|
||||||
$json = trim($request['text']);
|
$json = trim($request['text']);
|
||||||
|
|
||||||
if (file_exists('addon/twitter/twitter.php')) {
|
|
||||||
require_once 'addon/twitter/twitter.php';
|
|
||||||
|
|
||||||
$status = json_decode($json);
|
$status = json_decode($json);
|
||||||
|
|
||||||
$results[] = [
|
$results[] = [
|
||||||
|
@ -262,12 +259,6 @@ class Babel extends BaseModule
|
||||||
'title' => DI::l10n()->t('Post array before expand entities'),
|
'title' => DI::l10n()->t('Post array before expand entities'),
|
||||||
'content' => $visible_whitespace(var_export($postarray, true)),
|
'content' => $visible_whitespace(var_export($postarray, true)),
|
||||||
];
|
];
|
||||||
} else {
|
|
||||||
$results[] = [
|
|
||||||
'title' => DI::l10n()->tt('Error', 'Errors', 1),
|
|
||||||
'content' => DI::l10n()->t('Twitter addon is absent from the addon/ folder.'),
|
|
||||||
];
|
|
||||||
}
|
|
||||||
|
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
|
@ -8,7 +8,7 @@ msgid ""
|
||||||
msgstr ""
|
msgstr ""
|
||||||
"Project-Id-Version: 2024.12-dev\n"
|
"Project-Id-Version: 2024.12-dev\n"
|
||||||
"Report-Msgid-Bugs-To: \n"
|
"Report-Msgid-Bugs-To: \n"
|
||||||
"POT-Creation-Date: 2024-11-16 19:15+0000\n"
|
"POT-Creation-Date: 2024-11-17 07:37+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"
|
||||||
|
@ -293,7 +293,7 @@ msgstr ""
|
||||||
#: src/Module/Calendar/Event/Form.php:236 src/Module/Contact/Advanced.php:118
|
#: src/Module/Calendar/Event/Form.php:236 src/Module/Contact/Advanced.php:118
|
||||||
#: src/Module/Contact/Profile.php:376
|
#: src/Module/Contact/Profile.php:376
|
||||||
#: src/Module/Debug/ActivityPubConversion.php:128
|
#: src/Module/Debug/ActivityPubConversion.php:128
|
||||||
#: src/Module/Debug/Babel.php:288 src/Module/Debug/Localtime.php:50
|
#: src/Module/Debug/Babel.php:279 src/Module/Debug/Localtime.php:50
|
||||||
#: src/Module/Debug/Probe.php:40 src/Module/Debug/WebFinger.php:37
|
#: src/Module/Debug/Probe.php:40 src/Module/Debug/WebFinger.php:37
|
||||||
#: src/Module/FriendSuggest.php:132 src/Module/Install.php:220
|
#: src/Module/FriendSuggest.php:132 src/Module/Install.php:220
|
||||||
#: src/Module/Install.php:260 src/Module/Install.php:295
|
#: src/Module/Install.php:260 src/Module/Install.php:295
|
||||||
|
@ -1065,7 +1065,7 @@ msgstr ""
|
||||||
msgid "Email"
|
msgid "Email"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: src/Content/ContactSelector.php:122 src/Module/Debug/Babel.php:282
|
#: src/Content/ContactSelector.php:122 src/Module/Debug/Babel.php:273
|
||||||
msgid "Diaspora"
|
msgid "Diaspora"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
|
@ -3028,32 +3028,32 @@ msgstr ""
|
||||||
msgid "Enter a valid existing folder"
|
msgid "Enter a valid existing folder"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: src/Core/Update.php:102
|
#: src/Core/Update.php:103
|
||||||
#, php-format
|
#, php-format
|
||||||
msgid "Updates from version %s are not supported. Please update at least to version 2021.01 and wait until the postupdate finished version 1383."
|
msgid "Updates from version %s are not supported. Please update at least to version 2021.01 and wait until the postupdate finished version 1383."
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: src/Core/Update.php:113
|
#: src/Core/Update.php:114
|
||||||
#, php-format
|
#, php-format
|
||||||
msgid "Updates from postupdate version %s are not supported. Please update at least to version 2021.01 and wait until the postupdate finished version 1383."
|
msgid "Updates from postupdate version %s are not supported. Please update at least to version 2021.01 and wait until the postupdate finished version 1383."
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: src/Core/Update.php:205
|
#: src/Core/Update.php:206
|
||||||
#, php-format
|
#, php-format
|
||||||
msgid "%s: executing pre update %d"
|
msgid "%s: executing pre update %d"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: src/Core/Update.php:247
|
#: src/Core/Update.php:248
|
||||||
#, php-format
|
#, php-format
|
||||||
msgid "%s: executing post update %d"
|
msgid "%s: executing post update %d"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: src/Core/Update.php:321
|
#: src/Core/Update.php:322
|
||||||
#, php-format
|
#, php-format
|
||||||
msgid "Update %s failed. See error logs."
|
msgid "Update %s failed. See error logs."
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: src/Core/Update.php:361
|
#: src/Core/Update.php:362
|
||||||
#, php-format
|
#, php-format
|
||||||
msgid ""
|
msgid ""
|
||||||
"\n"
|
"\n"
|
||||||
|
@ -3063,16 +3063,16 @@ msgid ""
|
||||||
"\t\t\t\tfriendica developer if you can not help me on your own. My database might be invalid."
|
"\t\t\t\tfriendica developer if you can not help me on your own. My database might be invalid."
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: src/Core/Update.php:367
|
#: src/Core/Update.php:368
|
||||||
#, php-format
|
#, php-format
|
||||||
msgid "The error message is\\n[pre]%s[/pre]"
|
msgid "The error message is\\n[pre]%s[/pre]"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: src/Core/Update.php:371 src/Core/Update.php:399
|
#: src/Core/Update.php:372 src/Core/Update.php:400
|
||||||
msgid "[Friendica Notify] Database update"
|
msgid "[Friendica Notify] Database update"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: src/Core/Update.php:393
|
#: src/Core/Update.php:394
|
||||||
#, php-format
|
#, php-format
|
||||||
msgid ""
|
msgid ""
|
||||||
"\n"
|
"\n"
|
||||||
|
@ -6741,7 +6741,7 @@ msgid "Result Item"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: src/Module/Debug/ActivityPubConversion.php:117
|
#: src/Module/Debug/ActivityPubConversion.php:117
|
||||||
#: src/Module/Debug/Babel.php:267 src/Module/Moderation/Item/Source.php:82
|
#: src/Module/Moderation/Item/Source.php:82
|
||||||
#: src/Module/Security/TwoFactor/Verify.php:84
|
#: src/Module/Security/TwoFactor/Verify.php:84
|
||||||
msgid "Error"
|
msgid "Error"
|
||||||
msgid_plural "Errors"
|
msgid_plural "Errors"
|
||||||
|
@ -6884,39 +6884,35 @@ msgstr ""
|
||||||
msgid "HTML::toPlaintext (compact)"
|
msgid "HTML::toPlaintext (compact)"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: src/Module/Debug/Babel.php:243
|
#: src/Module/Debug/Babel.php:240
|
||||||
msgid "Decoded post"
|
msgid "Decoded post"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: src/Module/Debug/Babel.php:262
|
#: src/Module/Debug/Babel.php:259
|
||||||
msgid "Post array before expand entities"
|
msgid "Post array before expand entities"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: src/Module/Debug/Babel.php:268
|
#: src/Module/Debug/Babel.php:269
|
||||||
msgid "Twitter addon is absent from the addon/ folder."
|
|
||||||
msgstr ""
|
|
||||||
|
|
||||||
#: src/Module/Debug/Babel.php:278
|
|
||||||
msgid "Babel Diagnostic"
|
msgid "Babel Diagnostic"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: src/Module/Debug/Babel.php:280
|
#: src/Module/Debug/Babel.php:271
|
||||||
msgid "Source text"
|
msgid "Source text"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: src/Module/Debug/Babel.php:281
|
#: src/Module/Debug/Babel.php:272
|
||||||
msgid "BBCode"
|
msgid "BBCode"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: src/Module/Debug/Babel.php:283
|
#: src/Module/Debug/Babel.php:274
|
||||||
msgid "Markdown"
|
msgid "Markdown"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: src/Module/Debug/Babel.php:284
|
#: src/Module/Debug/Babel.php:275
|
||||||
msgid "HTML"
|
msgid "HTML"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: src/Module/Debug/Babel.php:286
|
#: src/Module/Debug/Babel.php:277
|
||||||
msgid "Twitter Source / Tweet URL (requires API key)"
|
msgid "Twitter Source / Tweet URL (requires API key)"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue