Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/utils/interact-with-post.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ async function interactWithPost(source: {interaction?: ModalSubmitInteraction |
// Get the CID of the post.
const session = await blueskyClient.restore(actorDID, "auto", {guildID: source.guildID, decryptionKey: source.decryptionKey});
const agent = new Agent(session);
const postCreatorDID = await blueskyClient.handleResolver.resolve(postCreatorHandle);
const postCreatorDID = postCreatorHandle.includes("did:") ? postCreatorHandle : await blueskyClient.handleResolver.resolve(postCreatorHandle);
if (!postCreatorDID) throw new Error();

const { data: {cid} } = await agent.com.atproto.repo.getRecord({
Expand Down
Loading