Fix Scripture Index doubled/unparseable refs, Titus passage fetch 400, Ko-fi QR 404, auto-load study comments; stop probe URLs inflating Real Hits, real 404 status for unknown URLs; v2.43.1

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
nmemmertandClaude Sonnet 5.5 committed 2026-10-15 11:30:05 -04:00
1 parent 09177f47ed
commit 6a5d525d6e
10 files changed
+59 -10

No files matched your search

+4 -2
View File
@@ -39,6 +39,7 @@ import {
sanitizeUserAgent,
shouldCountHit,
recordHit,
isKnownSitePath,
scheduleStudyReminders,
scheduleReengagementEmails,
scheduleWeeklyDigestEmails,
@@ -143,8 +144,9 @@ registerSalvation(app)
app.use((req, res, next) => {
if (shouldCountHit(req)) {
const ua = sanitizeUserAgent(req.get('user-agent'))
const botDetection = detectBot(ua)
recordHit(req.path, botDetection.isBot, botDetection.reason)
const knownPath = isKnownSitePath(req.path)
const botDetection = knownPath ? detectBot(ua) : { isBot: true, reason: 'unknown-path' }
recordHit(knownPath ? req.path : '(unknown)', botDetection.isBot, botDetection.reason)
queueHitStatsWrite()
if (hasVisitorConsent(req) && !botDetection.isBot && !isValidAdminSession(req)) {
try {