Change to use the user name for status timeline.
This commit is contained in:
parent
de150ad281
commit
a31db7e024
|
@ -132,9 +132,7 @@ public struct TwitterFeedProvider: FeedProvider {
|
|||
switch result {
|
||||
case .success(let user):
|
||||
if let userName = user.name {
|
||||
let localized = NSLocalizedString("%@ on Twitter", comment: "Twitter Name")
|
||||
let onName = NSString.localizedStringWithFormat(localized as NSString, userName) as String
|
||||
completion(.success(onName))
|
||||
completion(.success(userName))
|
||||
} else {
|
||||
completion(.failure(TwitterFeedProviderError.screenNameNotFound))
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue