From ab6941396a2e124741b974c6327a50f4945fac65 Mon Sep 17 00:00:00 2001 From: Michael Freiwald Date: Mon, 20 Jan 2025 10:00:15 +0100 Subject: [PATCH] Change language property from Locale to String for decoding --- .../ATProtoBlueskyAPI/PostRecord/CreatePostRecord.swift | 2 +- .../Models/Lexicons/app.bsky/Embed/AppBskyEmbedVideo.swift | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Sources/ATProtoKit/APIReference/ATProtoBlueskyAPI/PostRecord/CreatePostRecord.swift b/Sources/ATProtoKit/APIReference/ATProtoBlueskyAPI/PostRecord/CreatePostRecord.swift index 747272e8ef..b6f9b39af8 100644 --- a/Sources/ATProtoKit/APIReference/ATProtoBlueskyAPI/PostRecord/CreatePostRecord.swift +++ b/Sources/ATProtoKit/APIReference/ATProtoBlueskyAPI/PostRecord/CreatePostRecord.swift @@ -579,7 +579,7 @@ extension ATProtoBluesky { imageData: caption.file ) - captionReferences.append(AppBskyLexicon.Embed.VideoDefinition.Caption(language: caption.language, fileBlob: blobReference.blob)) + captionReferences.append(AppBskyLexicon.Embed.VideoDefinition.Caption(language: caption.language.identifier, fileBlob: blobReference.blob)) } } diff --git a/Sources/ATProtoKit/Models/Lexicons/app.bsky/Embed/AppBskyEmbedVideo.swift b/Sources/ATProtoKit/Models/Lexicons/app.bsky/Embed/AppBskyEmbedVideo.swift index da00755b45..cacc0f6948 100644 --- a/Sources/ATProtoKit/Models/Lexicons/app.bsky/Embed/AppBskyEmbedVideo.swift +++ b/Sources/ATProtoKit/Models/Lexicons/app.bsky/Embed/AppBskyEmbedVideo.swift @@ -78,7 +78,7 @@ extension AppBskyLexicon.Embed { public let type: String = "app.bsky.embed.video#caption" /// The language the captions are written in. - public let language: Locale + public let language: String /// The caption file itself. ///