1
0
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:
Nathan Mattes 2023-05-05 15:35:15 +02:00
parent f3becbec3f
commit 413a29208f

View File

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