PostEditLogData
public struct PostEditLogData : ContentUsed 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. DeclarationSwift var postID: Int
- 
                  
                  The ID of the edit. DeclarationSwift var editID: UUID
- 
                  
                  The timestamp of the post. DeclarationSwift 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). DeclarationSwift var author: UserHeader
- 
                  
                  The text of the forum post. DeclarationSwift var text: String
- 
                  
                  The filenames of the twarrt’s optional images. DeclarationSwift var images: [String]?
- 
                  
                  DeclarationSwift init(edit: TwarrtEdit, editor: UserHeader) throws
- 
                  
                  DeclarationSwift init(edit: ForumPostEdit, editor: UserHeader) throws
 View on GitHub
            View on GitHub
           PostEditLogData Structure Reference
      PostEditLogData Structure Reference