From 8f8d50efbd7644cc3a445a9b023ccb233df1f5dd Mon Sep 17 00:00:00 2001 From: Shadowfacts Date: Thu, 15 Sep 2022 21:04:53 -0400 Subject: [PATCH] Bring back StatusProtocol --- .../Sources/Pachyderm/Model/Protocols/StatusProtocol.swift | 5 +++-- Pachyderm/Sources/Pachyderm/Model/Status.swift | 2 +- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/Pachyderm/Sources/Pachyderm/Model/Protocols/StatusProtocol.swift b/Pachyderm/Sources/Pachyderm/Model/Protocols/StatusProtocol.swift index 345b20c5..afd49fde 100644 --- a/Pachyderm/Sources/Pachyderm/Model/Protocols/StatusProtocol.swift +++ b/Pachyderm/Sources/Pachyderm/Model/Protocols/StatusProtocol.swift @@ -20,8 +20,9 @@ public protocol StatusProtocol { var createdAt: Date { get } var reblogsCount: Int { get } var favouritesCount: Int { get } - var reblogged: Bool { get } - var favourited: Bool { get } + // pachyderm impl wants Bool, StatusMO wants optional. not sure how to resolve it, but we don't need this currently +// var reblogged: Bool { get } +// var favourited: Bool { get } var sensitive: Bool { get } var spoilerText: String { get } var visibility: Pachyderm.Status.Visibility { get } diff --git a/Pachyderm/Sources/Pachyderm/Model/Status.swift b/Pachyderm/Sources/Pachyderm/Model/Status.swift index 434e27ae..a5ee7c95 100644 --- a/Pachyderm/Sources/Pachyderm/Model/Status.swift +++ b/Pachyderm/Sources/Pachyderm/Model/Status.swift @@ -8,7 +8,7 @@ import Foundation -public final class Status: /*StatusProtocol,*/ Decodable { +public final class Status: StatusProtocol, Decodable { public let id: String public let uri: String public let url: URL?