[Nodeinfo] Fix twitterimport enabled check

This commit is contained in:
Diogo Cordeiro 2019-05-11 20:52:02 +01:00
parent 031a491abd
commit ceae66a30f

View File

@ -144,7 +144,7 @@ class Nodeinfo_2_0Action extends ApiAction
// FIXME: Are those always on?
$inboundServices = array('atom1.0', 'rss2.0');
if (array_key_exists('twitterbridge', $this->plugins) && $config['twitterimport']['enabled']) {
if (array_key_exists('twitterbridge', $this->plugins) && common_config('twitterimport', 'enabled')) {
$inboundServices[] = 'twitter';
}