feat: playlist follow, one-song reorder, and comment moderation - #579
Merged
Akatenvictor merged 2 commits intoAug 31, 2026
Conversation
Add comment flagging so reported comments surface in the existing moderation review flow with full comment context. A CommentReport entity tracks reports with a unique (commentId, reporterId) constraint preventing duplicate entries for the same comment and reporter. Flagged comments are hidden from public listings once a moderator resolves the report. Closes AudioBitsStellar#411
Add playlist follow/subscribe for listeners (mirroring the UserFollow relationship) with follow/unfollow endpoints, a followed-playlists listing endpoint, and follower counts. Includes a PlaylistFollow entity, migration, and tests. Add an explicit, efficient reorder endpoint that moves a single song to a new position (PATCH /:id/songs/:songId/position) without requiring the caller to resend the full playlist, keeping positions stable and compacted. Includes tests. Closes AudioBitsStellar#408 Closes AudioBitsStellar#409
|
@matteorossi-codes Great news! 🎉 Based on an automated assessment of this PR, the linked Wave issue(s) no longer count against your application limits. You can now already apply to more issues while waiting for a review of this PR. Keep up the great work! 🚀 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Playlist and comment moderation enhancements for AudioBlock:
Add a playlist song-reordering endpoint #409 — Added an explicit, efficient song-reorder endpoint:
PATCH /api/playlists/:id/songs/:songId/positionmoves a single song to a new position without requiring the caller to resend the full playlist. Positions stay compacted and stable. Covered by tests.Add playlist follow/subscribe for listeners #408 — Added playlist follow/subscribe for listeners, mirroring the
UserFollowrelationship. IncludesPOST /api/playlists/:id/follow,DELETE /api/playlists/:id/follow,GET /api/playlists/followed, follower counts, aPlaylistFollowentity + migration, and tests.Integrate comment flagging directly into the moderation queue #411 — Wired comment flagging directly into the moderation queue.
POST /api/comments/:id/reportcreates aCommentReportthat surfaces with full comment context in the moderation flow (GET /api/admin/comment-reports,PUT /api/admin/comment-reports/:id/resolve). A unique(commentId, reporterId)constraint prevents duplicate reports. Flagged/removed comments are hidden from public listings. Covered by tests.Add threaded replies to comments #410 — Threaded replies were already implemented in the codebase (self-referential
parentId,depthlimit, andGET /api/comments/:id/replies); no additional changes were needed.Closes #408
Closes #409
Closes #410
Closes #411