-
Notifications
You must be signed in to change notification settings - Fork 32
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Sharing options #1854
base: dev
Are you sure you want to change the base?
Sharing options #1854
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM! 🚀
A couple nits, nothing blocking.
"branch" : "sjmarf/sharing", | ||
"revision" : "edfba5745c5ddbcd0137afd24687db85e168a32e" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Reminder
do { | ||
print("START") | ||
let client = ApiClient.getApiClient(url: url, username: nil) | ||
let resolvedEntity = try await client.resolve(url: entity.actorId.url) | ||
NavigationModel.main.shareInfo = .init( | ||
url: resolvedEntity.url(), | ||
actions: entity.shareSheetActions() | ||
) | ||
ToastModel.main.removeToast(id: toastId) | ||
print("END") | ||
} catch { | ||
print("ERROR", error) | ||
ToastModel.main.removeToast(id: toastId) | ||
handleError(error) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nit
Debug prints?
Section("Share links using...") { | ||
Picker("Share links using...", selection: $linkSharingMode) { | ||
ForEach(LinkSharingMode.allCases, id: \.self) { mode in | ||
Text(mode.label) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nit
These should have conditional icons--"house," "signature," "questionmark.circle"?
Note
Relies on this MlemMiddleware PR.
Closes #639, closes #1395.
Settings -> Links -> Share Links
The default behavior is now to share from the user's instance rather than the author's instance as it was before.