diff --git a/keyserver/src/creators/farcaster-channel-tag-creator.js b/keyserver/src/creators/farcaster-channel-tag-creator.js --- a/keyserver/src/creators/farcaster-channel-tag-creator.js +++ b/keyserver/src/creators/farcaster-channel-tag-creator.js @@ -27,6 +27,7 @@ type BlobDownloadResult, } from '../services/blob.js'; import { Viewer } from '../session/viewer.js'; +import { thisKeyserverID } from '../user/identity.js'; async function createOrUpdateFarcasterChannelTag( viewer: Viewer, @@ -36,9 +37,10 @@ throw new ServerError('internal_error'); } - const [communityInfo, blobDownload] = await Promise.all([ + const [communityInfo, blobDownload, keyserverID] = await Promise.all([ fetchCommunityInfos(viewer, [request.commCommunityID]), getFarcasterChannelTagBlob(request.farcasterChannelID), + thisKeyserverID(), ]); if (communityInfo.length !== 1) { @@ -49,10 +51,11 @@ throw new ServerError('already_in_use'); } + const communityID = `${keyserverID}|${request.commCommunityID}`; const blobHolder = uuid.v4(); const blobResult = await uploadFarcasterChannelTagBlob( - request.commCommunityID, + communityID, request.farcasterChannelID, blobHolder, );