ModeratorActionLogData
public struct ModeratorActionLogData : Content
Returns data about an instance of a moderator using their mod powers to edit/delete a user’s content, edit a user’s profile fields, or change a user’s privledges.
-
The ID of this log entry
Declaration
Swift
var id: UUID
-
What action the moderator took.
Declaration
Swift
var actionType: ModeratorActionType
-
The type of content that got moderated: Twarrt, forum, forum post, fez, fez post, or user profile.
Declaration
Swift
var contentType: ReportType
-
The ID of the content. Could be an Int or a UUID, dpeeneding on
contentType
Declaration
Swift
var contentID: String
-
When the moderation actdion happened.
Declaration
Swift
var timestamp: Date
-
The user that did the action
Declaration
Swift
var moderator: UserHeader
-
The original author of the content that was moderated.
Declaration
Swift
var targetUser: UserHeader
-
Declaration
Swift
init(action: ModeratorAction, on req: Request) throws