RSSHub/lib
IChengHo 6969cf1bcb
fix(route/twreporter): Prevent crash when hero_image or og_image is missing (#20481)
The original code directly accessed nested properties on
`post.hero_image`, which is not guaranteed to exist.
This cause a TypeError when the image object was nil.

This commit introduces safe access by:
- Prioritizing `hero_image` but falling back to `og_image`
- Only rendering the banner if a valid image URL was resolved
2025-11-14 11:22:13 +08:00
..
api
assets
errors
middleware fix(middleware): ensure referrerpolicy is set only if not already defined (#20394) 2025-10-30 04:40:05 +08:00
routes fix(route/twreporter): Prevent crash when hero_image or og_image is missing (#20481) 2025-11-14 11:22:13 +08:00
routes-deprecated feat(route): add netflix (#20453) 2025-11-09 23:00:07 +08:00
utils feat: replace rand-user-agent with header-generator (#20480) 2025-11-14 00:49:41 +08:00
views chore(deps-dev): bump eslint-plugin-unicorn from 60.0.0 to 61.0.2 (#19998) 2025-09-08 23:03:48 +08:00
app-bootstrap.tsx
app.test.ts
app.ts
config.test.ts
config.ts feat: replace rand-user-agent with header-generator (#20480) 2025-11-14 00:49:41 +08:00
index.ts
pkg.test.ts
pkg.ts
registry.test.ts
registry.ts feat(route/telegram): Fix tglib (#18268) 2025-09-16 21:41:05 +08:00
router.js feat(route): add netflix (#20453) 2025-11-09 23:00:07 +08:00
routes.test.ts
server.ts fix(vercel): sync export default hono app (#19989) 2025-09-08 05:28:46 +08:00
setup.test.ts
types.ts feat(route/telegram): Fix tglib (#18268) 2025-09-16 21:41:05 +08:00