;; Likes service — inter-service action endpoints

(defaction toggle (&key user-id target-type target-slug target-id)
  "Toggle a like on a content item. Returns whether now liked."
  (let ((liked (service "likes" "toggle"
                 :user-id user-id :target-type target-type
                 :target-slug target-slug :target-id target-id)))
    {"liked" liked}))
