Skip to content

Commit

Permalink
Merge pull request #149 from technicat/main
Browse files Browse the repository at this point in the history
Report and ScheduledPost implement Identifiable
  • Loading branch information
kkostov committed Apr 21, 2023
2 parents b0cc481 + 685c9a0 commit 7157345
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Sources/TootSDK/Models/Report.swift
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
import Foundation

/// Reports filed against users and/or posts, to be taken action on by moderators.
public struct Report: Codable, Hashable {
public struct Report: Codable, Hashable, Identifiable {
public var id: String
public var actionTaken: Bool?
public var actionTakenAt: Date?
Expand Down
2 changes: 1 addition & 1 deletion Sources/TootSDK/Models/ScheduledPost.swift
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
import Foundation

/// Represents a post that will be published at a future scheduled date.
public struct ScheduledPost: Codable, Sendable {
public struct ScheduledPost: Codable, Identifiable, Sendable {
/// ID of the scheduled post in the database.
public var id: String
/// ID of the post in the database.
Expand Down

0 comments on commit 7157345

Please sign in to comment.