Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F3572052
D12228.id40740.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.id40740.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, Dec 29, 10:46 AM (8 h, 35 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2731860
Default Alt Text
D12228.id40740.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