Skip to content

Commit 8922f44

Browse files
authored
Rework FreshRSS sync (#1495)
- Skip overfetching tagged items - Skip fetching all articles "since" using `ot` param Details: - <https://github.com/bazqux/bazqux-api?tab=readme-ov-file#the-right-way-to-sync>
1 parent 6c8fdf1 commit 8922f44

File tree

1 file changed

+0
-12
lines changed

1 file changed

+0
-12
lines changed

capy/src/main/java/com/jocmp/capy/accounts/reader/ReaderAccountDelegate.kt

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -238,12 +238,9 @@ internal class ReaderAccountDelegate(
238238
}
239239

240240
private suspend fun refreshTopLevelArticles() {
241-
val since = articleRecords.maxArrivedAt().toEpochSecond()
242-
243241
refreshFeeds()
244242
refreshAllSavedSearches()
245243
refreshArticleState()
246-
fetchPaginatedArticles(since = since, stream = Stream.Read())
247244
fetchMissingArticles()
248245
}
249246

@@ -295,15 +292,6 @@ internal class ReaderAccountDelegate(
295292
savedSearchRecords.deleteOrphaned(excludedIDs = tags.map { it.id })
296293
}
297294
}
298-
299-
coroutineScope {
300-
savedSearchRecords.allIDs()
301-
.forEach { savedSearchID ->
302-
launch {
303-
fetchPaginatedArticles(stream = Stream.UserLabel(savedSearchID))
304-
}
305-
}
306-
}
307295
}
308296

309297
private fun upsertSavedSearch(tag: Tag) {

0 commit comments

Comments
 (0)