Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F3305127
D12063.id41267.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
1 KB
Referenced Files
None
Subscribers
None
D12063.id41267.diff
View Options
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
Details
Attached
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)
Attached To
Mode
D12063: [keyserver/lib] update farcaster channel tag blob payload to include keyserver id
Attached
Detach File
Event Timeline
Log In to Comment