Add support for refreshing the mentions timeline.

This commit is contained in:
Maurice Parker 2020-04-20 15:06:03 -05:00
parent 91aa2b3a32
commit a535aced06
1 changed files with 2 additions and 0 deletions

View File

@ -160,6 +160,8 @@ public struct TwitterFeedProvider: FeedProvider {
switch urlComponents.path { switch urlComponents.path {
case "/", "/home": case "/", "/home":
api = "statuses/home_timeline.json" api = "statuses/home_timeline.json"
case "/notifications/mentions":
api = "statuses/mentions_timeline.json"
case "/search": case "/search":
api = "search/tweets.json" api = "search/tweets.json"
if let query = urlComponents.queryItems?.first(where: { $0.name == "q" })?.value { if let query = urlComponents.queryItems?.first(where: { $0.name == "q" })?.value {