From 608963567fa0b9e5b65b179e7d4997107ad2c5da Mon Sep 17 00:00:00 2001 From: Justin Mazzocchi <2831158+jzzocc@users.noreply.github.com> Date: Tue, 22 Sep 2020 18:46:33 -0700 Subject: [PATCH] Make attachment preview url optional --- Mastodon/Sources/Mastodon/Entities/Attachment.swift | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Mastodon/Sources/Mastodon/Entities/Attachment.swift b/Mastodon/Sources/Mastodon/Entities/Attachment.swift index eed505d..d6317e5 100644 --- a/Mastodon/Sources/Mastodon/Entities/Attachment.swift +++ b/Mastodon/Sources/Mastodon/Entities/Attachment.swift @@ -36,7 +36,7 @@ public struct Attachment: Codable, Hashable { public let type: AttachmentType public let url: URL public let remoteUrl: URL? - public let previewUrl: URL + public let previewUrl: URL? public let textUrl: URL? public let meta: Meta? public let description: String?