diff options
author | Hailey <me@haileyok.com> | 2024-09-26 10:51:22 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-09-26 10:51:22 -0700 |
commit | 863764b3fecd6905869f67eb46d80f7ffd7264b1 (patch) | |
tree | 9a4c4a50809086689ab987c8dea5932d0bba3965 /modules/Share-with-Bluesky/ShareViewController.swift | |
parent | 702dfa8536d1cf9168a40a1f6970da6daf8b2cfb (diff) | |
download | voidsky-863764b3fecd6905869f67eb46d80f7ffd7264b1.tar.zst |
[Share Extension] Use the proper identifier for if statement on iOS (#5505)
Diffstat (limited to 'modules/Share-with-Bluesky/ShareViewController.swift')
-rw-r--r-- | modules/Share-with-Bluesky/ShareViewController.swift | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/Share-with-Bluesky/ShareViewController.swift b/modules/Share-with-Bluesky/ShareViewController.swift index 63143277a..e166c22d2 100644 --- a/modules/Share-with-Bluesky/ShareViewController.swift +++ b/modules/Share-with-Bluesky/ShareViewController.swift @@ -101,7 +101,7 @@ class ShareViewController: UIViewController { private func handleVideos(items: [NSItemProvider]) async { let firstItem = items.first - if let dataUri = try? await firstItem?.loadItem(forTypeIdentifier: "public.video") as? URL { + if let dataUri = try? await firstItem?.loadItem(forTypeIdentifier: "public.movie") as? URL { let ext = String(dataUri.lastPathComponent.split(separator: ".").last ?? "mp4") if let tempUrl = getTempUrl(ext: ext) { let data = try? Data(contentsOf: dataUri) |