mirror of
https://github.com/samuelclay/NewsBlur.git
synced 2025-09-18 21:50:56 +00:00
Fix Mail action in "Send to" from the original story view not including the URL.
After 1bbb0fc7e0
the original URL is no longer
included as a separate activity item, so we need to include it in the mail body
directly.
Mailing from the story view directly not affected, there we include the URL in
the text (done by NewsBlurAppDelegate's showSendTo:withUrl:authorName:text:
title:feedTitle:images)
This commit is contained in:
parent
5fd37d2587
commit
0eb7a1d357
1 changed files with 4 additions and 3 deletions
|
@ -46,9 +46,10 @@
|
|||
}
|
||||
|
||||
-(id)activityViewController:(UIActivityViewController *)activityViewController itemForActivityType:(NSString *)activityType {
|
||||
if ([activityType isEqualToString:UIActivityTypeMail] ||
|
||||
[activityType isEqualToString:@"com.evernote.iPhone.Evernote.EvernoteShare"]) {
|
||||
return @{@"body": text ?: @"", @"subject": title};
|
||||
if ([activityType isEqualToString:UIActivityTypeMail]) {
|
||||
return text ?: (url ?: @"");
|
||||
} else if ([activityType isEqualToString:@"com.evernote.iPhone.Evernote.EvernoteShare"]) {
|
||||
return @{@"body": text ?: (url ?: @""), @"subject": title};
|
||||
} else if ([activityType isEqualToString:UIActivityTypePostToTwitter] ||
|
||||
[activityType isEqualToString:UIActivityTypePostToFacebook] ||
|
||||
[activityType isEqualToString:UIActivityTypePostToWeibo]) {
|
||||
|
|
Loading…
Add table
Reference in a new issue