ContentModerationStatus

enum ContentModerationStatus : String, Codable

Moderation status of a piece of reportable content. This enum is used both in Models and in data transfer objects in the API. Be very careful about renaming enum cases or customizing case strings.

  • The initial state for all content.

    Declaration

    Swift

    case normal
  • Auto-quarantine gets set automatically when a certain number of users have reported on content in the ‘normal’ state. Auto-quarantined content is not visible to non-mods, instead showing a ‘this post/forum quarantined’ message.

    Declaration

    Swift

    case autoQuarantined
  • Mods can quarantine content to make it hidden from normal users but still in place, visible to mods. Mods may do this as an interim measure while determining a more permanent status.

    Declaration

    Swift

    case quarantined
  • Mods can set this status on content, usually switching from one of the quarantine statuses. Reviewed means the content is deemed ‘ok’ by mods and is immune to auto-quarantine. A nom-mod user editing the content will remove modReviewed status (goes to normal).

    Declaration

    Swift

    case modReviewed
  • Mods can set this status on content. Locked content is not modifiable by non-mods, but has normal visibility. Locked content is immune to auto-quarantine.

    Declaration

    Swift

    case locked
  • Declaration

    Swift

    mutating func setFromParameterString(_ param: String) throws
  • Declaration

    Swift

    func showsContent() -> Bool