Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F3395710
D11708.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
999 B
Referenced Files
None
Subscribers
None
D11708.diff
View Options
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
Details
Attached
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)
Attached To
Mode
D11708: [keyserver] Use keyserverID instead of userID when creating invite link blobs
Attached
Detach File
Event Timeline
Log In to Comment