Skip to content

DoCurious API Reference / types / ContentFlag

Interface: ContentFlag

Defined in: types/community.types.ts:283

A content flag (report) submitted by a user against community content.

Remarks

Used for community-level moderation. Admins/moderators review flagged content and take action (warn, remove, ban).

Extends

Properties

actionTaken?

optional actionTaken: "none" | "warning" | "content_removed" | "user_banned"

Defined in: types/community.types.ts:297

Action taken by the moderator after review


communityId

communityId: string

Defined in: types/community.types.ts:284


contentId

contentId: string

Defined in: types/community.types.ts:289

ID of the flagged content


contentType

contentType: "user" | "feed_item" | "comment"

Defined in: types/community.types.ts:287

Type of content being flagged


createdAt

createdAt: string

Defined in: types/common.types.ts:154

ISO 8601 datetime when the entity was created

Inherited from

BaseEntity.createdAt


description?

optional description: string

Defined in: types/community.types.ts:293

Optional description from the reporter


id

id: string

Defined in: types/common.types.ts:167

Inherited from

BaseEntity.id


reason

reason: "other" | "spam" | "harassment" | "inappropriate" | "misinformation"

Defined in: types/community.types.ts:291

Reason for the flag


reporterUserId

reporterUserId: string

Defined in: types/community.types.ts:285


reviewedAt?

optional reviewedAt: string

Defined in: types/community.types.ts:301


reviewedByUserId?

optional reviewedByUserId: string

Defined in: types/community.types.ts:300


reviewNotes?

optional reviewNotes: string

Defined in: types/community.types.ts:299

Moderator's notes about the review decision


status

status: "pending" | "reviewed" | "dismissed"

Defined in: types/community.types.ts:295

Current review status


updatedAt

updatedAt: string

Defined in: types/common.types.ts:156

ISO 8601 datetime when the entity was last modified

Inherited from

BaseEntity.updatedAt

DoCurious Platform Documentation