← Public packages
@kentcdodds/bluesky
Bluesky and AT Protocol helpers using package-storage handle plus blueskyAppPassword.
src/like-post.ts
16 lines · 722 B · TypeScriptimport { likePost } from './client.ts'
import type { LikeRepostInput } from './types.ts'
/**
* Like a Bluesky post. Maps `uri`/`cid` aliases (`postUri`/`postCid`/`subject`); rejects unknown keys. Publishing requires `confirm: true`.
* @param params.uri - Post AT URI to like.
* @param params.cid - Post CID matching the URI.
* @returns Created like record or dry-run payload.
* @example
* import likePost from 'kody:@kentcdodds/bluesky/like-post'
* const result = await likePost({ uri: 'at://...', cid: 'bafy...', dryRun: true })
* // => { dryRun: true, action: 'like-post', payload: { ... } }
*/
export default async function likePostEntrypoint(params: LikeRepostInput = {}) {
return await likePost(params)
}