function castCommentLike
castCommentLike(
commentId: string,
userId: string
): LikeResult

Records userId's like on a comment and notifies the comment's author. The notification is best-effort: if it fails, the like still counts.

Parameters

commentId: string
userId: string

Return Type

Throws

APIException

404 when the comment doesn't exist or sits on someone else's private dump, 409 when the user already likes it.

Usage

import { castCommentLike } from "api/services/comment-like-service.ts";