mirror of
https://github.com/mastodon/mastodon-ios.git
synced 2025-02-03 10:47:35 +01:00
Update hashtag every 15 minutes (IOS-152)
This commit is contained in:
parent
f3becbec3f
commit
413a29208f
@ -16,7 +16,7 @@ struct HashtagWidgetProvider: IntentTimelineProvider {
|
||||
|
||||
func getTimeline(for configuration: HashtagIntent, in context: Context, completion: @escaping (Timeline<HashtagWidgetTimelineEntry>) -> Void) {
|
||||
loadMostRecentHashtag(for: configuration, in: context) { entry in
|
||||
completion(Timeline(entries: [entry], policy: .after(.now)))
|
||||
completion(Timeline(entries: [entry], policy: .after(.now.addingTimeInterval(60 * 15))))
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user