ForumEditLogData
public struct ForumEditLogData : Content
Used to return ForumEdit
data for moderators. ForumEdit only stores the title and category the forum had before the edit.
Included in:
Returned by:
GET /api/v3/mod/forum/id
-
The ID of the forum.
Declaration
Swift
var forumID: UUID
-
The ID of the edit.
Declaration
Swift
var editID: UUID
-
The timestamp of the edit.
Declaration
Swift
var createdAt: Date
-
Who initiated the edit. Usually the forum author, but could be a moderator. Note that the saved edit shows the state BEFORE the edit, therefore the ‘author’ here changed the contents to those of the NEXT edit (or to the current state).
Declaration
Swift
var author: UserHeader
-
The title of the forum just BEFORE
author
edited it.Declaration
Swift
var title: String
-
The category the forum was in just BEFORE
author
edited it.Declaration
Swift
var categoryID: UUID?
-
Declaration
Swift
init(_ edit: ForumEdit, on req: Request) throws