-
-
Notifications
You must be signed in to change notification settings - Fork 278
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Show more metadata for posts (#1200)
* Show first image when sharing (#1199) * Don't share custom metadata (#1199) :facepalm: that was way to easy, thanks docs! * If we only share an URL, we don't need metadata (#1199)
- Loading branch information
1 parent
a90d5ea
commit 23a505b
Showing
5 changed files
with
34 additions
and
55 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
// | ||
// URLActivityItem.swift | ||
// Mastodon | ||
// | ||
// Created by Jed Fox on 2022-12-03. | ||
// | ||
|
||
import UIKit | ||
import LinkPresentation | ||
|
||
class URLActivityItem: NSObject, UIActivityItemSource { | ||
let url: URL | ||
|
||
init(url: URL) { | ||
self.url = url | ||
} | ||
|
||
func activityViewControllerPlaceholderItem(_ activityViewController: UIActivityViewController) -> Any { | ||
return url | ||
} | ||
|
||
func activityViewController(_ activityViewController: UIActivityViewController, itemForActivityType activityType: UIActivity.ActivityType?) -> Any? { | ||
return url | ||
} | ||
} |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters