diff --git a/src/application/controller/register.php b/src/application/controller/register.php index 5efe332..6a0c8ff 100644 --- a/src/application/controller/register.php +++ b/src/application/controller/register.php @@ -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'); diff --git a/src/config-default.php b/src/config-default.php index a88f274..e33f4c2 100644 --- a/src/config-default.php +++ b/src/config-default.php @@ -23,4 +23,5 @@ define('TWISTER_USER', ''); define('TWISTER_PASSWORD', ''); // COMMON -define('APPLICATION_ALLOW_REGISTRATION', true); \ No newline at end of file +define('APPLICATION_ALLOW_REGISTRATION', true); +define('APPLICATION_FOLLOW_ON_REGISTRATION', []); \ No newline at end of file