Skip to content

Comments and reactions ​

Who: listener (author, reactor); creator (content owner); system (spam filter, counters).

Entry points ​

KindEntry
REST (comments)GET/POST /targets/:targetType/:targetId/comments, GET …/comments/timeline, GET …/comments/held, GET/PATCH …/comment-settings, GET /comments/:commentId/replies, PATCH/DELETE /comments/:commentId, POST /comments/:commentId/approve, POST /comments/:commentId/report
REST (reactions)PUT/DELETE/GET /reactions/:targetType/:targetId
REST (likes)POST /likes, DELETE /likes/:targetType/:targetId, GET /likes/:targetType/:targetId, GET /me/likes
Targetssongs, albums, playlists, episodes, moments, DJ sets
Deep linkcomment (comment/:id)
Pushcomment.mention

Flow ​

  1. POST …/comments { body, parentId?, positionMs? } (timestamped on songs). The spam filter may hold it (held, owner approves with POST …/approve) or reject it. Event social.comment.created; mentioned users get comment.mention.
  2. Owner can pin, turn comments off (PATCH …/comment-settings), approve held ones; author edits within the window or deletes (social.comment.removed).
  3. Report POST /comments/:commentId/report → social.comment.reported → safety flag (Reports).
  4. Reactions PUT /reactions/:targetType/:targetId { emoji } → social.reaction.set; likes → social.like.created. Counters go to Valkey and social.counter-flush writes them to Postgres.

Exit states ​

StateCodeActionsClient next
Posted——Insert in thread
Comments offSOCIAL_COMMENTS_DISABLED—Hide composer
Rejected by filterSOCIAL_COMMENT_REJECTED——
Edit windowSOCIAL_COMMENT_EDIT_CLOSED——
TimestampSOCIAL_COMMENT_POSITION_INVALID——
Not allowed / blockedSOCIAL_COMMENT_FORBIDDEN, SOCIAL_BLOCKED——
Duplicate reportSOCIAL_COMMENT_ALREADY_REPORTED——
TargetSOCIAL_TARGET_NOT_FOUND, SOCIAL_TARGET_NOT_SUPPORTED——

Notifications ​

comment.mention. Likes and reactions send nothing.

Known gaps ​

  • social.liked is seeded but never sent; like and reaction events have no consumer (I1).
  • social.mentioned is a seeded duplicate of comment.mention (M5).

Plemuz API v2