Skip to content

Admin - Delete Inappropriate Feed Posts #20

@Cybermaxi7

Description

@Cybermaxi7

📚 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

  1. Implement Delete Method:
    • Develop a method within src/feed/feed.service.ts to delete posts.
    • Expose this functionality via the src/feed/feed.controller.ts.
  2. Logging Moderation Actions:
    • Create or update the logging mechanism in src/feed/entities/moderation-log.entity.ts to record deletion actions.

🛡️ 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.ts
    • src/feed/feed.controller.ts
    • src/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. 🔒

Metadata

Metadata

Assignees

Labels

NESTJSgood first issueGood for newcomersonlydust-waveContribute to awesome OSS repos during OnlyDust's open source week

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions