Page MenuHomePhabricator

D12228.id40740.diff
No OneTemporary

D12228.id40740.diff

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

Mime Type
text/plain
Expires
Sun, Oct 6, 5:49 PM (22 h, 19 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2250445
Default Alt Text
D12228.id40740.diff (926 B)

Event Timeline