@ -57,6 +57,11 @@ if (isset($_POST) && $_POST) {
// Post new user public key to the network
if ($transaction = $_twister->sendNewUserTransaction($userName)) {
// Auto follow users
if (APPLICATION_FOLLOW_ON_REGISTRATION){
$_twister->follow($userName, APPLICATION_FOLLOW_ON_REGISTRATION);
}
// Prepare Welcome page
$metaTitle = _('Welcome | Twisterarmy Cloud');
@ -23,4 +23,5 @@ define('TWISTER_USER', '');
define('TWISTER_PASSWORD', '');
// COMMON
define('APPLICATION_ALLOW_REGISTRATION', true);
define('APPLICATION_FOLLOW_ON_REGISTRATION', []);