aboutsummaryrefslogtreecommitdiffstats
path: root/Zotlabs/Module/Sse_bs.php
diff options
context:
space:
mode:
authornobody <nobody@zotlabs.com>2021-04-16 04:42:45 -0700
committernobody <nobody@zotlabs.com>2021-04-16 04:42:45 -0700
commita96345401f47be71a6eef531e204c0e25b792a16 (patch)
tree4afde386815934f9f395353b0d1d38cfd7f2592c /Zotlabs/Module/Sse_bs.php
parent9359fc065c72243bd85f0fc3db842976f07183cc (diff)
parent7ccd7b439f5a029384ecb28911a0df6f6d658231 (diff)
downloadvolse-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.php9
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);