Page MenuHomePhabricator

D12228.id40747.diff
No OneTemporary

D12228.id40747.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, Dec 29, 10:46 AM (8 h, 4 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2731860
Default Alt Text
D12228.id40747.diff (926 B)

Event Timeline