Fix lock not actually being populated
This commit is contained in:
parent
a19896333f
commit
8ad918c1f8
3
lib.js
3
lib.js
@ -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
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user