fix: avoid treating URL-only contact verification snapshots as 500

This commit is contained in:
QLHazyCoder
2026-05-11 03:39:36 +08:00
parent 3763da7a14
commit f09173128b
2 changed files with 27 additions and 9 deletions
+3 -2
View File
@@ -1421,12 +1421,13 @@
.join(' ')
.replace(/\s+/g, ' ')
.trim();
const titleText = String(snapshot?.title || '').replace(/\s+/g, ' ').trim();
if (!bodyText) {
return 'OpenAI contact-verification page returned HTTP ERROR 500 after resend.';
return isPhoneResendServerError(titleText) ? (titleText || 'OpenAI contact-verification page returned HTTP ERROR 500 after resend.') : '';
}
const combined = [
bodyText,
snapshot?.title,
titleText,
]
.filter(Boolean)
.join(' ')