Skip to content

Built for people who want to own their automations. Join the waitlist for an invite.

Package listing

@kody/bluesky

src/like-post.ts

16 lines · 636 B · TypeScript
import { likePost } from './client.ts'
import type { LikeRepostInput } from './types.ts'

/**
 * Like a Bluesky post. 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:@kody/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)
}