PostEditLogData
public struct PostEditLogData : Content
Used to return a TwarrtEdit
or ForumPost
‘s data for moderators. The two models use the same data structure, as all the fields happen to be the same.
Included in:
Returned by:
GET /api/v3/mod/twarrt/id
-
The ID of the post. Depending on context, could be a twarrtID or a forumPostID.
Declaration
Swift
var postID: Int
-
The ID of the edit.
Declaration
Swift
var editID: UUID
-
The timestamp of the post.
Declaration
Swift
var createdAt: Date
-
Who initiated the edit. Usually the post 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 text of the forum post.
Declaration
Swift
var text: String
-
The filenames of the twarrt’s optional images.
Declaration
Swift
var images: [String]?
-
Declaration
Swift
init(edit: TwarrtEdit, editor: UserHeader) throws
-
Declaration
Swift
init(edit: ForumPostEdit, editor: UserHeader) throws