PostEdit

public struct PostEdit : Codable, Hashable, Sendable

Undocumented

  • The content of the post at this revision.

    Declaration

    Swift

    public var content: String
  • The content of the subject or content warning at this revision

    Declaration

    Swift

    public var spoilerText: String
  • Whether the post was marked sensitive at this revision

    Declaration

    Swift

    public var sensitive: Bool
  • The timestamp of when the revision was published

    Declaration

    Swift

    public var createdAt: Date?
  • The account that published this revision

    Declaration

    Swift

    public var account: Account
  • The current state of the poll options at this revision

    Declaration

    Swift

    public var poll: Poll?
  • The current state of the media attachments at this revision

    Declaration

    Swift

    public var mediaAttachments: [MediaAttachment]
  • Any custom emoji that are used in the current revision

    Declaration

    Swift

    public var emojis: [Emoji]
  • Undocumented

    Declaration

    Swift

    public init(content: String, spoilerText: String, sensitive: Bool, createdAt: Date? = nil, account: Account, poll: Poll? = nil, mediaAttachments: [MediaAttachment], emojis: [Emoji])