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 | |
parent | 702dfa8536d1cf9168a40a1f6970da6daf8b2cfb (diff) | |
download | voidsky-863764b3fecd6905869f67eb46d80f7ffd7264b1.tar.zst |
[Share Extension] Use the proper identifier for if statement on iOS (#5505)
Diffstat (limited to 'modules')
-rw-r--r-- | modules/Share-with-Bluesky/Info.plist | 2 | ||||
-rw-r--r-- | modules/Share-with-Bluesky/ShareViewController.swift | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/modules/Share-with-Bluesky/Info.plist b/modules/Share-with-Bluesky/Info.plist index 43f46a5e5..d73a9093f 100644 --- a/modules/Share-with-Bluesky/Info.plist +++ b/modules/Share-with-Bluesky/Info.plist @@ -40,4 +40,4 @@ <key>CFBundleShortVersionString</key> <string>$(MARKETING_VERSION)</string> </dict> -</plist> +</plist> \ No newline at end of file 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) |