aboutsummaryrefslogtreecommitdiffstats
path: root/Zotlabs/Lib/Enotify.php
diff options
context:
space:
mode:
authorMario <mario@mariovavti.com>2021-03-18 19:41:12 +0000
committerMario <mario@mariovavti.com>2021-03-18 19:41:12 +0000
commit3ac27d800455f9603d2a8093159aa81033335a9f (patch)
tree4f617e575f391b6729ee807ea5732f9d7595b128 /Zotlabs/Lib/Enotify.php
parent854a6e378703d096e8c9c4910600d3da6e854a5c (diff)
downloadvolse-hubzilla-3ac27d800455f9603d2a8093159aa81033335a9f.tar.gz
volse-hubzilla-3ac27d800455f9603d2a8093159aa81033335a9f.tar.bz2
volse-hubzilla-3ac27d800455f9603d2a8093159aa81033335a9f.zip
air: display the verification status in the notifications
Diffstat (limited to 'Zotlabs/Lib/Enotify.php')
-rw-r--r--Zotlabs/Lib/Enotify.php4
1 files changed, 3 insertions, 1 deletions
diff --git a/Zotlabs/Lib/Enotify.php b/Zotlabs/Lib/Enotify.php
index a8fff01a3..be93e655c 100644
--- a/Zotlabs/Lib/Enotify.php
+++ b/Zotlabs/Lib/Enotify.php
@@ -977,8 +977,10 @@ class Enotify {
static public function format_register($rr) {
$policy = intval(get_config('system','register_policy'));
+
$message = (($rr['reg_vfd']) ? t('verified') : t('not verified'));
- $message .= (($policy == REGISTER_APPROVE) ? ', ' . t('requires approval') : '');
+ if(!$rr['reg_vfd'] && $rr['reg_expires'] < datetime_convert())
+ $message = t('expired');
$x = [
'notify_link' => z_root() . '/admin/accounts',