Skip to content

Commit

Permalink
use proper identifier
Browse files Browse the repository at this point in the history
  • Loading branch information
haileyok committed Sep 26, 2024
1 parent 1ae7fa6 commit 95aed71
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion modules/Share-with-Bluesky/Info.plist
Original file line number Diff line number Diff line change
Expand Up @@ -40,4 +40,4 @@
<key>CFBundleShortVersionString</key>
<string>$(MARKETING_VERSION)</string>
</dict>
</plist>
</plist>
2 changes: 1 addition & 1 deletion modules/Share-with-Bluesky/ShareViewController.swift
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 95aed71

Please sign in to comment.