]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
Site profile "community" should be invite-only by default
authorMikael Nordfeldth <mmn@hethane.se>
Fri, 7 Mar 2014 19:57:33 +0000 (20:57 +0100)
committerMikael Nordfeldth <mmn@hethane.se>
Fri, 7 Mar 2014 19:57:33 +0000 (20:57 +0100)
Because if you have your own local/closed community, likely you
don't want random newcomers that drop in, spam and leave dead
accounts.

The Admin can of course always override this by setting the config
"inviteonly" to false either in the config.php or on the website.

lib/siteprofile.php

index ae32acdf768c5dc8344e1bfff181f62d3dc67c4e..ccbac76af12acf1389531d00f69f4a8cd2daf75c 100644 (file)
@@ -191,6 +191,7 @@ class CommunitySite extends SiteProfileSettings
             'site' => array_merge(
                 $config['site'], array(
                     'private'    => false,
+                    'inviteonly' => true,
                     'closed'     => false
                 )
             ),