From 8c91fcf1a4ec892c6e1b43e6bce0d640cc1d0594 Mon Sep 17 00:00:00 2001 From: Jared Pereira Date: Sun, 25 Jan 2026 20:36:03 -0500 Subject: [PATCH] publish bsky post properly for new records --- app/[leaflet_id]/publish/publishBskyPost.ts | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) diff --git a/app/[leaflet_id]/publish/publishBskyPost.ts b/app/[leaflet_id]/publish/publishBskyPost.ts index be612396..7edce1f1 100644 --- a/app/[leaflet_id]/publish/publishBskyPost.ts +++ b/app/[leaflet_id]/publish/publishBskyPost.ts @@ -8,11 +8,8 @@ import { import sharp from "sharp"; import { TID } from "@atproto/common"; import { getIdentityData } from "actions/getIdentityData"; -import { AtpBaseClient, PubLeafletDocument } from "lexicons/api"; -import { - restoreOAuthSession, - OAuthSessionError, -} from "src/atproto-oauth"; +import { AtpBaseClient, SiteStandardDocument } from "lexicons/api"; +import { restoreOAuthSession, OAuthSessionError } from "src/atproto-oauth"; import { supabaseServerClient } from "supabase/serverClient"; import { Json } from "supabase/database.types"; import { @@ -30,7 +27,7 @@ export async function publishPostToBsky(args: { url: string; title: string; description: string; - document_record: PubLeafletDocument.Record; + document_record: SiteStandardDocument.Record; rkey: string; facets: AppBskyRichtextFacet.Main[]; }): Promise { @@ -115,7 +112,7 @@ export async function publishPostToBsky(args: { }, ); let record = args.document_record; - record.postRef = post; + record.bskyPostRef = post; let { data: result } = await agent.com.atproto.repo.putRecord({ rkey: args.rkey, -- 2.51.2