aboutsummaryrefslogtreecommitdiffstats
path: root/Zotlabs/Lib
diff options
context:
space:
mode:
authorMario <mario@mariovavti.com>2021-03-17 17:49:13 +0100
committerMario <mario@mariovavti.com>2021-03-17 17:49:13 +0100
commit9f26b7aa9c6e3ba50de5a0780c917cabad7367f6 (patch)
treebcc78e49cf73db9e6af6f5a11367be47b1f9f2e8 /Zotlabs/Lib
parentfebf766be0ecd2a50aa8842a90a23dc23763e373 (diff)
downloadvolse-hubzilla-9f26b7aa9c6e3ba50de5a0780c917cabad7367f6.tar.gz
volse-hubzilla-9f26b7aa9c6e3ba50de5a0780c917cabad7367f6.tar.bz2
volse-hubzilla-9f26b7aa9c6e3ba50de5a0780c917cabad7367f6.zip
air: convert utc to local in browser (we do not have a client timezone othervise at this point) - issue #1544
Diffstat (limited to 'Zotlabs/Lib')
-rw-r--r--Zotlabs/Lib/Enotify.php6
1 files changed, 5 insertions, 1 deletions
diff --git a/Zotlabs/Lib/Enotify.php b/Zotlabs/Lib/Enotify.php
index 992eba000..a8fff01a3 100644
--- a/Zotlabs/Lib/Enotify.php
+++ b/Zotlabs/Lib/Enotify.php
@@ -976,6 +976,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') : '');
+
$x = [
'notify_link' => z_root() . '/admin/accounts',
'name' => (($rr['reg_email']) ? $rr['reg_email'] : $rr['reg_did2']),
@@ -983,7 +987,7 @@ class Enotify {
'photo' => z_root() . '/' . get_default_profile_photo(48),
'when' => datetime_convert('UTC', date_default_timezone_get(),$rr['reg_created']),
'hclass' => ('notify-unseen'),
- 'message' => (($rr['reg_vfd']) ? t('verified') : t('not yet verified')) . ', ' . t('requires approval')
+ 'message' => $message
];
return $x;