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
Targets
songs, albums, playlists, episodes, moments, DJ sets
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.
Owner can pin, turn comments off (PATCH …/comment-settings), approve held ones; author edits within the window or deletes (social.comment.removed).
Report POST /comments/:commentId/report → social.comment.reported → safety flag (Reports).
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.
Comments and reactions
Who: listener (author, reactor); creator (content owner); system (spam filter, counters).
Entry points
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/reportPUT/DELETE/GET /reactions/:targetType/:targetIdPOST /likes,DELETE /likes/:targetType/:targetId,GET /likes/:targetType/:targetId,GET /me/likescomment(comment/:id)comment.mentionFlow
POST …/comments { body, parentId?, positionMs? }(timestamped on songs). The spam filter may hold it (held, owner approves withPOST …/approve) or reject it. Eventsocial.comment.created; mentioned users getcomment.mention.PATCH …/comment-settings), approve held ones; author edits within the window or deletes (social.comment.removed).POST /comments/:commentId/report→social.comment.reported→ safety flag (Reports).PUT /reactions/:targetType/:targetId { emoji }→social.reaction.set; likes →social.like.created. Counters go to Valkey andsocial.counter-flushwrites them to Postgres.Exit states
SOCIAL_COMMENTS_DISABLEDSOCIAL_COMMENT_REJECTEDSOCIAL_COMMENT_EDIT_CLOSEDSOCIAL_COMMENT_POSITION_INVALIDSOCIAL_COMMENT_FORBIDDEN,SOCIAL_BLOCKEDSOCIAL_COMMENT_ALREADY_REPORTEDSOCIAL_TARGET_NOT_FOUND,SOCIAL_TARGET_NOT_SUPPORTEDNotifications
comment.mention. Likes and reactions send nothing.Known gaps
social.likedis seeded but never sent; like and reaction events have no consumer (I1).social.mentionedis a seeded duplicate ofcomment.mention(M5).