Page MenuHomePhabricator

D12063.id41267.diff
No OneTemporary

D12063.id41267.diff

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,
);

File Metadata

Mime Type
text/plain
Expires
Tue, Nov 19, 12:24 PM (21 h, 48 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2539308
Default Alt Text
D12063.id41267.diff (1 KB)

Event Timeline