Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F3380997
D12399.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
666 B
Referenced Files
None
Subscribers
None
D12399.diff
View Options
diff --git a/keyserver/src/fetchers/link-fetchers.js b/keyserver/src/fetchers/link-fetchers.js
--- a/keyserver/src/fetchers/link-fetchers.js
+++ b/keyserver/src/fetchers/link-fetchers.js
@@ -78,14 +78,14 @@
async function checkIfInviteLinkIsValid(
secret: string,
- communityID: string,
+ threadID: string,
): Promise<boolean> {
const query = SQL`
SELECT i.id
FROM invite_links i
INNER JOIN threads c ON c.id = i.community
WHERE i.name = ${secret}
- AND i.community = ${communityID}
+ AND (i.community = ${threadID} OR i.thread = ${threadID})
AND c.community IS NULL
`;
const [result] = await dbQuery(query);
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Fri, Nov 29, 3:35 AM (21 h, 44 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2595610
Default Alt Text
D12399.diff (666 B)
Attached To
Mode
D12399: [keyserver] Modify thread join responder to handle thread invite links
Attached
Detach File
Event Timeline
Log In to Comment