Add subjects for activity item sources

This commit is contained in:
Shadowfacts 2023-01-02 17:16:31 -05:00
parent cc401fce8c
commit 18d7917756
2 changed files with 8 additions and 0 deletions

View File

@ -37,4 +37,8 @@ class AccountActivityItemSource: NSObject, UIActivityItemSource {
return metadata
}
func activityViewController(_ activityViewController: UIActivityViewController, subjectForActivityType activityType: UIActivity.ActivityType?) -> String {
return "\(account.displayName) (@\(account.acct)"
}
}

View File

@ -40,4 +40,8 @@ class StatusActivityItemSource: NSObject, UIActivityItemSource {
return metadata
}
func activityViewController(_ activityViewController: UIActivityViewController, subjectForActivityType activityType: UIActivity.ActivityType?) -> String {
return "Post by @\(status.account.acct)"
}
}