ModeratorActionType

public enum ModeratorActionType : String, Codable

Describes the type of action a moderator took. This enum is used both in the ModeratorAction Model, and in several Moderation DTOs. Be careful when modifying this. Not all ModeratorActionTypes are applicable to all ReportTypes.

  • The moderator has created a post, but is posting as @moderator or @twitarrTeam. ‘Post’ could be a twarrt, forum post, or fez post.

    Declaration

    Swift

    case post
  • The moderator edited a piece of content owned by somebody else. For user content, this means the profile fields (custom avatar images can’t be edited by mods, only deleted).

    Declaration

    Swift

    case edit
  • The moderator deleted somebody else’s content. For user content, this means the user photo (users and profile fields can’t be deleted).

    Declaration

    Swift

    case delete
  • The moderator moved somebody’s content to another place. Currently this means they moved a forum to a new category.

    Declaration

    Swift

    case move
  • The moderator has quarantined a user or a piece of content. Quarantined content still exists, but the server replaces the contents with a quarantine message. A quarantined user can still read content, but cannot post or edit.

    Declaration

    Swift

    case quarantine
  • If enough users report on some content (e.g. a twarrt or forum post), that content will get auto-quarantined. A mod can review the content and if it’s not in violation they can set it’s modStatus to markReviewed to indicate the content is OK. This protects the content from auto-quarantining.

    Declaration

    Swift

    case markReviewed
  • The moderator has locked a piece of content. Locking prevents the owner from modifying the content; locking a forum or fez prevents new messages from being posted.

    Declaration

    Swift

    case lock
  • The moderator has unlocked a piece of content.

    Declaration

    Swift

    case unlock
  • pin

    The moderator has pinned a forum post or thread.

    Declaration

    Swift

    case pin
  • The moderator has unpinned a forum post or thread.

    Declaration

    Swift

    case unpin
  • The mod set the userAccessLevel of a user to .unverified

    Declaration

    Swift

    case accessLevelUnverified
  • The mod set the userAccessLevel of a user to .banned

    Declaration

    Swift

    case accessLevelBanned
  • The mod set the userAccessLevel of a user to .quarantined

    Declaration

    Swift

    case accessLevelQuarantined
  • The mod set the userAccessLevel of a user to .verified

    Declaration

    Swift

    case accessLevelVerified
  • The mod set a temporary quarantine on the user.

    Declaration

    Swift

    case tempQuarantine
  • The mod cleared a temporary quarantine on the user.

    Declaration

    Swift

    case tempQuarantineCleared
  • Declaration

    Swift

    static func setFromModerationStatus(_ status: ContentModerationStatus) -> ModeratorActionType
  • Returns nil for access levels that can’t be set normally

    Declaration

    Swift

    static func setFromAccessLevel(_ level: UserAccessLevel) -> `Self`?