waifuim
    Preparing search index...

    Class ReportsService

    Index

    Constructors

    Methods

    Constructors

    Methods

    • Report an image.

      Submit a report for an image that violates guidelines or contains inappropriate content.

      Please provide a clear description of the issue to help moderators review the report efficiently.

      Common report reasons:

      • Wrong tags (e.g., marked as SFW but contains NSFW content)
      • Copyright violation
      • Duplicate image
      • Low quality or inappropriate content

      Parameters

      • imageId: number

        The ID of the image being reported.

      • Optionaldescription: string

        A description explaining why this image is being reported. Example: This image is incorrectly tagged as SFW but contains NSFW content.

      Returns Promise<ImageReport>

      AuthenticationRequired if authentication is missing.

      ApiError with status 400 if invalid report data.

      ApiError with status 401 if authentication is invalid.

      ApiError with status 404 if image not found.

    • Mark a report as resolved.

      Mark a report as resolved after taking appropriate action on the reported image. This removes the report from the pending queue.

      Requires: Moderator role or higher.

      Parameters

      • id: number

        The report ID to resolve.

      Returns Promise<void>

      AuthenticationRequired if authentication is missing.

      ApiError with status 401 if authentication is invalid.

      ApiError with status 403 if insufficient permissions.

      ApiError with status 404 if report not found.