From 3ac27d800455f9603d2a8093159aa81033335a9f Mon Sep 17 00:00:00 2001 From: Mario Date: Thu, 18 Mar 2021 19:41:12 +0000 Subject: air: display the verification status in the notifications --- Zotlabs/Lib/Enotify.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'Zotlabs/Lib/Enotify.php') 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', -- cgit v1.2.3