fix: 主题/样式继承查询跳过观看计数——前后端配合 noread 标记
前端 inheritThemeStyle 的 fetch 体附加 noread:true,后端 dnfs2 _handle_get_notes 检测到该标记时跳过 _bump_views,避免静默查询 污染节点的观看次数统计。
This commit is contained in:
1 parent
2d4c60f643
commit
49d9a33420
2 files changed
+8
-3
No files matched your search
@@ -722,7 +722,7 @@ function inheritThemeStyle() {
|
||||
var res = await fetch('/get_notes', {
|
||||
method: 'POST',
|
||||
headers: { 'Content-Type': 'application/json' },
|
||||
body: JSON.stringify({ pid: pid })
|
||||
body: JSON.stringify({ pid: pid, noread: true })
|
||||
});
|
||||
if (gen !== _inherit_gen) return;
|
||||
if (!res.ok) continue;
|
||||
|
||||
Reference in new issue
Block a user