Page MenuHomePhabricator

D12399.diff
No OneTemporary

D12399.diff

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

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)

Event Timeline