PostEditLogData
public struct PostEditLogData : Content
Used to return a ForumPost‘s previous contents for moderators.
Included in:
-
The ID of the forum post.
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 post’s optional images.
Declaration
Swift
var images: [String]? -
Declaration
Swift
init(edit: ForumPostEdit, editor: UserHeader) throws
View on GitHub