]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
[Nodeinfo] Fix twitterimport enabled check
authorDiogo Cordeiro <diogo@fc.up.pt>
Sat, 11 May 2019 19:52:02 +0000 (20:52 +0100)
committerDiogo Cordeiro <diogo@fc.up.pt>
Sat, 11 May 2019 19:52:02 +0000 (20:52 +0100)
plugins/Nodeinfo/actions/nodeinfo_2_0.php

index 411e5c318f3178a2f4cad55f8ab883219ff3995d..63f59e11e4bccfd9542067e25e9d96dddec6ec8a 100644 (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';
         }