🐛 (notes): 想法按私密阅读设置发表并回读

新想法跟这本书的私密阅读走,修改已有想法沿用原来的可见范围。
回读对不上就当这轮失败,不把 HTTP 成功当成已经私密。
This commit is contained in:
Garfield committed 2026-12-01 12:47:12 +08:00
1 parent 69a72f63c0
commit 352ee1bd99
11 files changed
+359 -57

No files matched your search

@@ -22,7 +22,6 @@ local Toc = require("moonsource_weread.toc")
local Client = require("moonsource_weread.client")
local Mem = require("utils.mem")
local Context = require("moonsource_weread.context")
local Mapper = require("moonsource_weread.mapper")
local _ = require("l10n").get("moonsource_weread")
local Chapter = {}
@@ -74,12 +73,12 @@ local function downloadPackageAsync(bookId, chapters, book_type, pick, cb, opts)
fail(err)
return
end
local version = Mapper.bookVersion(wire)
Context.rememberBook(bookId, wire)
local version = Context.bookVersion(bookId)
if not version then
fail(_("缺少书籍版本"))
return
end
Context.rememberBookVersion(bookId, version)
download(attempt, version)
end)
if not fired then call = next_call end