mirror of
https://github.com/friendica/friendica
synced 2025-04-26 00:30:12 +00:00
Remove dependency for twitter addon
This commit is contained in:
parent
2b6cc5378f
commit
fca8de40a1
1 changed files with 20 additions and 29 deletions
|
@ -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;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue