forked from shadowfacts/Tusker
Add subjects for activity item sources
This commit is contained in:
parent
cc401fce8c
commit
18d7917756
|
@ -37,4 +37,8 @@ class AccountActivityItemSource: NSObject, UIActivityItemSource {
|
|||
return metadata
|
||||
}
|
||||
|
||||
func activityViewController(_ activityViewController: UIActivityViewController, subjectForActivityType activityType: UIActivity.ActivityType?) -> String {
|
||||
return "\(account.displayName) (@\(account.acct)"
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
@ -39,5 +39,9 @@ class StatusActivityItemSource: NSObject, UIActivityItemSource {
|
|||
}
|
||||
return metadata
|
||||
}
|
||||
|
||||
func activityViewController(_ activityViewController: UIActivityViewController, subjectForActivityType activityType: UIActivity.ActivityType?) -> String {
|
||||
return "Post by @\(status.account.acct)"
|
||||
}
|
||||
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue