Fix lock not actually being populated

This commit is contained in:
dakedres 2024-02-10 02:08:31 -07:00
parent a19896333f
commit 8ad918c1f8

3
lib.js
View File

@ -468,7 +468,7 @@ export const populateSource = (source, postReducerCallback, lock) => {
let sourceLock = lock.sources[source.name] ??= {}
source.posts = []
source = processRss(source, sourceLock.timestamp ?? 0, postReducerCallback)
source = processRss(source, sourceLock.timestamp ?? 0, postReducerCallback, lock)
if(sourceLock.items) {
for(let itemText of sourceLock.items) {
@ -479,6 +479,7 @@ export const populateSource = (source, postReducerCallback, lock) => {
}
lock.sources[source.name] = sourceLock
lockSource(source, lock)
return source
}