*/
private static function getServices(App $app)
{
- $config = $app->getConfig();
-
$services = [
'inbound' => [],
'outbound' => [],
];
- $smtp = (function_exists('imap_open') && !$config->get('system', 'imap_disabled') && !$config->get('system', 'dfrn_only'));
-
if (Addon::isEnabled('blogger')) {
$services['outbound'][] = 'blogger';
}
$services['inbound'][] = 'pumpio';
$services['outbound'][] = 'pumpio';
}
- if ($smtp) {
- $services['outbound'][] = 'smtp';
- }
+
+ $services['outbound'][] = 'smtp';
+
if (Addon::isEnabled('tumblr')) {
$services['outbound'][] = 'tumblr';
}
{
$config = $app->getConfig();
+ $imap = (function_exists('imap_open') && !$config->get('system', 'imap_disabled') && !$config->get('system', 'dfrn_only'));
+
$nodeinfo = [
'version' => '2.0',
'software' => [
$nodeinfo['services']['inbound'][] = 'rss2.0';
$nodeinfo['services']['outbound'][] = 'atom1.0';
+ if ($imap) {
+ $nodeinfo['services']['inbound'][] = 'imap';
+ }
+
$nodeinfo['metadata']['explicitContent'] = $config->get('system', 'explicit_content', false) == true;
header('Content-type: application/json; charset=utf-8');