Change to use the user name for status timeline.

This commit is contained in:
Maurice Parker 2020-04-17 04:30:54 -05:00
parent de150ad281
commit a31db7e024
1 changed files with 1 additions and 3 deletions

View File

@ -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))
}