diff options
author | nobody <nobody@zotlabs.com> | 2021-04-16 04:42:45 -0700 |
---|---|---|
committer | nobody <nobody@zotlabs.com> | 2021-04-16 04:42:45 -0700 |
commit | a96345401f47be71a6eef531e204c0e25b792a16 (patch) | |
tree | 4afde386815934f9f395353b0d1d38cfd7f2592c /Zotlabs/Module/Sse_bs.php | |
parent | 9359fc065c72243bd85f0fc3db842976f07183cc (diff) | |
parent | 7ccd7b439f5a029384ecb28911a0df6f6d658231 (diff) | |
download | volse-hubzilla-a96345401f47be71a6eef531e204c0e25b792a16.tar.gz volse-hubzilla-a96345401f47be71a6eef531e204c0e25b792a16.tar.bz2 volse-hubzilla-a96345401f47be71a6eef531e204c0e25b792a16.zip |
Merge branch 'dev' of https://framagit.org/hubzilla/core into dev
Diffstat (limited to 'Zotlabs/Module/Sse_bs.php')
-rw-r--r-- | Zotlabs/Module/Sse_bs.php | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/Zotlabs/Module/Sse_bs.php b/Zotlabs/Module/Sse_bs.php index c7580971e..cc67c8eb7 100644 --- a/Zotlabs/Module/Sse_bs.php +++ b/Zotlabs/Module/Sse_bs.php @@ -688,12 +688,15 @@ class Sse_bs extends Controller { if(! self::$uid && ! is_site_admin()) return $result; + $policy = intval(get_config('system','register_policy')); + if(($policy & REGISTER_APPROVE) != REGISTER_APPROVE) + return $result; + if(! (self::$vnotify & VNOTIFY_REGISTER)) return $result; - $r = q("SELECT account_email, account_created from account where (account_flags & %d) > 0", - intval(ACCOUNT_PENDING) - ); + $r = get_pending_accounts(); + if($r) { foreach($r as $rr) { $result['register']['notifications'][] = Enotify::format_register($rr); |