-
Notifications
You must be signed in to change notification settings - Fork 32
Open
Labels
NESTJSgood first issueGood for newcomersGood for newcomersonlydust-waveContribute to awesome OSS repos during OnlyDust's open source weekContribute to awesome OSS repos during OnlyDust's open source week
Description
📚 Overview
Enable admins to delete feed posts that violate community rules to ensure the platform remains clean and safe.
📝 Background
This feature is important to maintain the integrity of the platform by removing inappropriate content. Only admins should have deletion rights, and each action must be logged for accountability.
⚙️ Specifications
- Access Control: Only admin users can delete posts.
- Logging: Each deletion action must be recorded in the moderation log.
🚀 Tasks
- Implement Delete Method:
- Develop a method within
src/feed/feed.service.tsto delete posts. - Expose this functionality via the
src/feed/feed.controller.ts.
- Develop a method within
- Logging Moderation Actions:
- Create or update the logging mechanism in
src/feed/entities/moderation-log.entity.tsto record deletion actions.
- Create or update the logging mechanism in
🛡️ Acceptance Criteria
- Admin users can successfully delete flagged posts.
- Each deletion action is logged in the moderation history.
🔧 Impacts & Considerations
-
Impacted Files:
src/feed/feed.service.tssrc/feed/feed.controller.tssrc/feed/entities/moderation-log.entity.ts
-
Follow the contribution guidelines:
- Assignment required before PR submission
- Timeframe: 2–3 days
- PR description must include:
Close #20
Follow the contribution guide for detailed instructions.
Let's ensure all moderation actions are visible and traceable for improved security and reliability. 🔒
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
NESTJSgood first issueGood for newcomersGood for newcomersonlydust-waveContribute to awesome OSS repos during OnlyDust's open source weekContribute to awesome OSS repos during OnlyDust's open source week