Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F3356378
D12228.id40690.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
926 B
Referenced Files
None
Subscribers
None
D12228.id40690.diff
View Options
diff --git a/keyserver/src/creators/account-creator.js b/keyserver/src/creators/account-creator.js
--- a/keyserver/src/creators/account-creator.js
+++ b/keyserver/src/creators/account-creator.js
@@ -50,7 +50,10 @@
import { fetchOlmAccount } from '../updaters/olm-account-updater.js';
import { updateThread } from '../updaters/thread-updaters.js';
import { viewerAcknowledgmentUpdater } from '../updaters/viewer-acknowledgment-updater.js';
-import { thisKeyserverAdmin } from '../user/identity.js';
+import {
+ isAuthoritativeKeyserver,
+ thisKeyserverAdmin,
+} from '../user/identity.js';
const { commbot } = bots;
@@ -176,6 +179,11 @@
async function sendMessagesOnAccountCreation(
viewer: Viewer,
): Promise<RawMessageInfo[]> {
+ const isAuthoritative = await isAuthoritativeKeyserver();
+ if (!isAuthoritative) {
+ return [];
+ }
+
const admin = await thisKeyserverAdmin();
await updateThread(
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sun, Nov 24, 6:41 PM (20 h, 14 s)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2576981
Default Alt Text
D12228.id40690.diff (926 B)
Attached To
Mode
D12228: [keyserver] Don't create a thread with an admin when creating a new account
Attached
Detach File
Event Timeline
Log In to Comment