mirror of
https://github.com/friendica/friendica
synced 2025-04-22 12:30:12 +00:00
Merge pull request #13335 from annando/no-twitter
The twitter addon is no import connector anymore
This commit is contained in:
commit
3cda8b65cd
8 changed files with 9 additions and 31 deletions
|
@ -88,10 +88,6 @@ class NodeInfo110 extends BaseModule
|
|||
|
||||
$nodeinfo['metadata']['services'] = $nodeinfo['services'];
|
||||
|
||||
if (Addon::isEnabled('twitter')) {
|
||||
$nodeinfo['metadata']['services']['inbound'][] = 'twitter';
|
||||
}
|
||||
|
||||
$nodeinfo['metadata']['explicitContent'] = $this->config->get('system', 'explicit_content', false) == true;
|
||||
|
||||
$this->response->setType(ICanCreateResponses::TYPE_JSON);
|
||||
|
|
|
@ -72,10 +72,6 @@ class NodeInfo120 extends BaseModule
|
|||
$nodeinfo['protocols'][] = 'ostatus';
|
||||
}
|
||||
|
||||
if (Addon::isEnabled('twitter')) {
|
||||
$nodeinfo['services']['inbound'][] = 'twitter';
|
||||
}
|
||||
|
||||
$nodeinfo['services']['inbound'][] = 'atom1.0';
|
||||
$nodeinfo['services']['inbound'][] = 'rss2.0';
|
||||
$nodeinfo['services']['outbound'][] = 'atom1.0';
|
||||
|
|
|
@ -71,10 +71,6 @@ class NodeInfo210 extends BaseModule
|
|||
$nodeinfo['protocols'][] = 'ostatus';
|
||||
}
|
||||
|
||||
if (Addon::isEnabled('twitter')) {
|
||||
$nodeinfo['services']['inbound'][] = 'twitter';
|
||||
}
|
||||
|
||||
$nodeinfo['services']['inbound'][] = 'atom1.0';
|
||||
$nodeinfo['services']['inbound'][] = 'rss2.0';
|
||||
$nodeinfo['services']['outbound'][] = 'atom1.0';
|
||||
|
|
|
@ -59,7 +59,7 @@ class Statistics extends BaseModule
|
|||
/// @todo mark the "service" addons and load them dynamically here
|
||||
$services = [
|
||||
'appnet' => Addon::isEnabled('appnet'),
|
||||
'buffer' => Addon::isEnabled('buffer'),
|
||||
'bluesky' => Addon::isEnabled('bluesky'),
|
||||
'dreamwidth' => Addon::isEnabled('dreamwidth'),
|
||||
'gnusocial' => Addon::isEnabled('gnusocial'),
|
||||
'libertree' => Addon::isEnabled('libertree'),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue