]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
OStatus enabled by default, only disabled for private siteprofile
authorMikael Nordfeldth <mmn@hethane.se>
Fri, 9 May 2014 08:31:55 +0000 (10:31 +0200)
committerMikael Nordfeldth <mmn@hethane.se>
Fri, 9 May 2014 08:31:55 +0000 (10:31 +0200)
lib/default.php
lib/siteprofile.php

index e04f10b080274c8ec42de6cf5b57700d94156e69..6898c5588359a141804651534c7f86088ad53f42 100644 (file)
@@ -305,10 +305,12 @@ $default =
                             'Oembed' => array(),
                             'OpenID' => array(),
                             'OpportunisticQM' => array(),
+                            'OStatus' => array(),
                             'Poll' => array(),
                             'QnA' => array(),
                             'SearchSub' => array(),
                             'TagSub' => array(),
+                            'WebFinger' => array(),
                         ),
               'locale_path' => false, // Set to a path to use *instead of* each plugin's own locale subdirectories
               'server' => null,
index d3ab4c9705df529e445252b84eceb390b2bd9101..d2a4a00204d34f33ba48c1998be2467f740bed1a 100644 (file)
@@ -110,11 +110,8 @@ class PublicSite extends SiteProfileSettings
             'plugins' => array(
                 'core'    => self::corePlugins(),
                 'default' => array_merge(self::defaultPlugins(), array(
-                    'Directory'               => array(),
                     'ExtendedProfile'         => array(),
-                    'OStatus'                 => array(),
                     'RegisterThrottle'        => array(),
-                    'WebFinger'               => array(),
                 ))
             ),
             'discovery' => array('cors' => true) // Allow Cross-Origin Resource Sharing for service discovery (host-meta, XRD, etc.)
@@ -147,11 +144,12 @@ class PrivateSite extends SiteProfileSettings
             'plugins' => array(
                 'core'    => self::corePlugins(),
                 'default' => array_merge(self::defaultPlugins(), array(
-                    'Directory'               => array(),
                     'ExtendedProfile'         => array(),
                     'EmailRegistration'       => array(),
                     'MobileProfile'           => array(),
-                ))
+                )),
+                'disable-OStatus' => 1,
+                'disable-WebFinger' => 1,
              ),
             'profile'       => array('delete' => 'true'),
             'license'       => array('type'   => 'private'),
@@ -199,9 +197,6 @@ class CommunitySite extends SiteProfileSettings
             'plugins' => array(
                 'core'    => self::corePlugins(),
                 'default' => array_merge(self::defaultPlugins(), array(
-                    'Directory'               => array(),
-                    'OStatus'                 => array(),
-                    'WebFinger'               => array(),
                 ))
             ),
             'discovery' => array('cors' => true) // Allow Cross-Origin Resource Sharing for service discovery (host-meta, XRD, etc.)
@@ -235,11 +230,10 @@ class SingleuserSite extends SiteProfileSettings
                 'core'    => self::corePlugins(),
                 'default' => array_merge(self::defaultPlugins(), array(
                     'MobileProfile'           => array(),
-                    'OStatus'                 => array(),
                     'TwitterBridge'           => array(),
                     'FacebookBridge'          => array(),
-                    'WebFinger'               => array(),
-                ))
+                )),
+                'disable-Directory' => 1,
             ),
             'discovery' => array('cors' => true) // Allow Cross-Origin Resource Sharing for service discovery (host-meta, XRD, etc.)
         );