DIYgod mirror
Go to file
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
.devcontainer feat(utils/puppeteer): replace `puppeteer-extra-plugin-stealth` with `rebrowser` (#19506) 2025-07-01 04:38:05 +08:00
.github chore(deps): bump actions-cool/issues-helper from 3.7.1 to 3.7.2 (#20457) 2025-11-10 17:36:43 +08:00
.husky chore(deps-dev): bump husky from 9.0.11 to 9.1.0 (#16200) 2024-07-18 20:04:24 +08:00
.idx feat(utils/puppeteer): replace `puppeteer-extra-plugin-stealth` with `rebrowser` (#19506) 2025-07-01 04:38:05 +08:00
assets
eslint-plugins feat: more nsfw flag 2025-09-30 12:30:30 +08:00
lib fix(route/twreporter): Prevent crash when hero_image or og_image is missing (#20481) 2025-11-14 11:22:13 +08:00
logs
plugins feat: compile ts through tsdown (#18908) 2025-04-22 22:29:11 +08:00
scripts chore(deps-dev): bump tsdown from 0.15.12 to 0.16.0 (#20431) 2025-11-06 01:30:32 +08:00
.codecov.yml
.dockerignore chore(deps): update bbob packages to version 4.3.1 and clean up patches (#20323) 2025-10-18 05:35:49 +08:00
.editorconfig
.gitignore chore: sort git ignore 2025-04-16 03:59:36 +08:00
.gitpod.yml feat(utils/puppeteer): replace `puppeteer-extra-plugin-stealth` with `rebrowser` (#19506) 2025-07-01 04:38:05 +08:00
.npmrc
.prettierignore feat: compile ts through tsdown (#18908) 2025-04-22 22:29:11 +08:00
.prettierrc
.puppeteerrc.cjs refactor: fix lint issue (#18963) 2025-04-29 03:00:16 +08:00
CODE_OF_CONDUCT.md
CONTRIBUTING.md
Dockerfile chore(deps): update bbob packages to version 4.3.1 and clean up patches (#20323) 2025-10-18 05:35:49 +08:00
LICENSE
README.md docs: fix visitors count 2025-04-28 04:40:10 +08:00
SECURITY.md
app.json
babel.config.js
docker-compose.yml feat: Refer to ghcr.io in docker-compose (#19743) 2025-08-04 17:18:52 +08:00
eslint.config.mjs style(eslint): update no-unused-vars args option to 'after-used' 2025-11-04 21:03:01 +08:00
fly.toml chore: update fly.toml 2025-06-06 21:38:15 +08:00
package.json feat: replace rand-user-agent with header-generator (#20480) 2025-11-14 00:49:41 +08:00
pnpm-lock.yaml feat: replace rand-user-agent with header-generator (#20480) 2025-11-14 00:49:41 +08:00
tailwind.config.js
tsconfig.json chore: add Vercel build configuration 2025-08-10 18:34:16 +08:00
tsdown-vercel.config.ts feat: vercel compatibility 2025-08-11 21:39:03 +08:00
tsdown.config.ts feat: vercel compatibility 2025-08-11 21:39:03 +08:00
vitest.config.ts

README.md

RSSHub

RSSHub

🧡 Everything is RSSible

docker publish npm publish test Test coverage Visitors

Telegram group Telegram channel X (Twitter)

Introduction

RSSHub is the world's largest RSS network, consisting of over 5,000 global instances.

RSSHub delivers millions of contents aggregated from all kinds of sources, our vibrant open source community is ensuring the deliver of RSSHub's new routes, new features and bug fixes.

Documentation | Telegram Group | Telegram Channel | X (Twitter)

  • RSSHub Radar | A browser extension that can help you quickly discover and subscribe to the RSS and RSSHub of current websites.
  • RSSBud | RSSHub Radar for iOS platform, designed specifically for mobile ecosystem optimization.
  • RSSAid | RSSHub Radar for Android platform built with Flutter.
  • DocSearch | Link RSSHub DocSearch into Raycast

Contribute

We welcome all pull requests. Suggestions and feedback are also welcomed here.

Refer to Quick Start

Deployment

Refer to Deployment

Special Thanks

Logo designer sheldonrrr

              

Author

RSSHub © DIYgod, Released under the MIT License.
Authored and maintained by DIYgod with help from contributors (list).

Blog @DIYgod · GitHub @DIYgod · X (Twitter) @DIYgod · Telegram Channel @awesomeDIYgod