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:
1 parent
09177f47ed
commit
6a5d525d6e
10 files changed
+59
-10
No files matched your search
@@ -2422,6 +2422,13 @@ export default function AdminPage({ content, onSave, onLogout }: Props) {
|
||||
const [commentsLoaded, setCommentsLoaded] = useState(false)
|
||||
const [commentFilter, setCommentFilter] = useState<'all' | 'pending' | 'approved'>('all')
|
||||
const [commentSearch, setCommentSearch] = useState('')
|
||||
// Load moderation queue as soon as the section is opened; a failed load leaves the manual button available
|
||||
const commentsAutoTried = useRef(false)
|
||||
useEffect(() => {
|
||||
if (adminView !== 'study-comments' || commentsLoaded || commentsAutoTried.current) return
|
||||
commentsAutoTried.current = true
|
||||
void loadStudyComments()
|
||||
}, [adminView, commentsLoaded])
|
||||
|
||||
// Episode scripts state
|
||||
const [scriptsList, setScriptsList] = useState<Array<{ key: string; episodeNumber: string; title: string; filename: string; season: string | null; uploadedAt: string | null; wordCount: number }>>([])
|
||||
|
||||
Reference in new issue
Block a user