Page MenuHomePhabricator

D11708.diff
No OneTemporary

D11708.diff

diff --git a/keyserver/src/creators/invite-link-creator.js b/keyserver/src/creators/invite-link-creator.js
--- a/keyserver/src/creators/invite-link-creator.js
+++ b/keyserver/src/creators/invite-link-creator.js
@@ -30,7 +30,7 @@
type BlobOperationResult,
} from '../services/blob.js';
import { Viewer } from '../session/viewer.js';
-import { fetchIdentityInfo } from '../user/identity.js';
+import { thisKeyserverID } from '../user/identity.js';
import { getAndAssertKeyserverURLFacts } from '../utils/urls.js';
const secretRegex = /^[a-zA-Z0-9]+$/;
@@ -222,11 +222,7 @@
linkSecret: string,
holder: string,
): Promise<BlobOperationResult> {
- const identityInfo = await fetchIdentityInfo();
- const keyserverID = identityInfo?.userId;
- if (!keyserverID) {
- throw new ServerError('invalid_credentials');
- }
+ const keyserverID = await thisKeyserverID();
const { baseDomain, basePath } = getAndAssertKeyserverURLFacts();
const keyserverURL = baseDomain + basePath;

File Metadata

Mime Type
text/plain
Expires
Mon, Dec 2, 7:06 AM (16 h, 5 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2606960
Default Alt Text
D11708.diff (999 B)

Event Timeline