diff --git a/src/config/app.php.example b/src/config/app.php.example index d336e1b..9f3c6cf 100644 --- a/src/config/app.php.example +++ b/src/config/app.php.example @@ -72,6 +72,12 @@ define('MODERATOR_IP_LIST', (array) // User define('USER_DEFAULT_APPROVED', false); +define('USER_AUTO_APPROVE_ON_MAGNET_APPROVE', false); +define('USER_AUTO_APPROVE_ON_COMMENT_APPROVE', false); + +define('USER_DEFAULT_IDENTICON', 'jidenticon'); // jidenticon|false +define('USER_IDENTICON_FIELD', 'address'); // address|userId|... + // Magnet define('MAGNET_DEFAULT_APPROVED', USER_DEFAULT_APPROVED); define('MAGNET_DEFAULT_PUBLIC', false); diff --git a/src/public/action.php b/src/public/action.php index 66e7297..8b928f2 100644 --- a/src/public/action.php +++ b/src/public/action.php @@ -31,7 +31,7 @@ switch (isset($_GET['target']) ? urldecode($_GET['target']) : false) switch (isset($_GET['toggle']) ? $_GET['toggle'] : false) { - case 'identicon': + case 'jidenticon': // Yggdrasil connections only if (!preg_match(YGGDRASIL_URL_REGEX, $_SERVER['REMOTE_ADDR'])) @@ -62,7 +62,7 @@ switch (isset($_GET['target']) ? urldecode($_GET['target']) : false) $icon = new Jdenticon\Identicon(); - $icon->setValue($user->address); + $icon->setValue($user->{USER_IDENTICON_FIELD}); $icon->setSize(empty($_GET['size']) ? 100 : (int) $_GET['size']); $icon->setStyle( [ diff --git a/src/public/magnet.php b/src/public/magnet.php index 94307af..a3b46f1 100644 --- a/src/public/magnet.php +++ b/src/public/magnet.php @@ -418,11 +418,14 @@ echo '' . PHP_EOL ?>
value)) ?>
- + + + timeAdded) ?>