ShareToMail accepts Subject and Body parameters as documented.

This commit is contained in:
Jesse Smith
2012-07-05 09:53:10 -07:00
parent 15342d3e89
commit 6591bd024c

View File

@@ -112,14 +112,10 @@
SHKItem *item;
NSString *message = [arguments objectAtIndex:1];
if ([arguments objectAtIndex:2]==NULL) {
NSURL *itemUrl = [NSURL URLWithString:[arguments objectAtIndex:2]];
item = [SHKItem URL:itemUrl title:message contentType:SHKURLContentTypeWebpage];
} else {
item = [SHKItem text:message];
}
NSString *subject = [arguments objectAtIndex:1];
NSString *body = [arguments objectAtIndex:2];
item = [SHKItem text:body title:subject];
[SHKMail shareItem:item];
}