mirror of
https://github.com/twisterarmy/cloud-server.git
synced 2025-03-13 05:51:46 +00:00
add follow on registration users config
This commit is contained in:
parent
9b06c6b9c4
commit
6201fd6a04
@ -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_ALLOW_REGISTRATION', true);
|
||||
define('APPLICATION_FOLLOW_ON_REGISTRATION', []);
|
Loading…
x
Reference in New Issue
Block a user