Commit Graph

14 Commits

Author SHA1 Message Date
github-actions[bot] a28890a135 style: auto format 2025-11-27 02:55:46 +00:00
DIYgod 8520db3e13
feat: api route (#19209)
* feat: api route

* test: api route
2025-05-27 13:21:27 +08:00
DIYgod 91d9acc68b
fix: redirection in router handler 2024-11-12 20:14:04 +08:00
Stephen Zhou a4daf28ca5
fix: catch Invalid Date (#17081) 2024-10-10 21:21:35 -07:00
Tony 9d7e1943f0
test: fix tests (#16697)
* test: fix tests

* revert "fix: fill image from itunes_item_image (#16694)"

This reverts commit 879772a97f.

* fix: fill image from jsonfeed template

* chore: bump msw to 2.4.3
2024-09-11 01:05:37 +08:00
Stephen Zhou 879772a97f
fix: fill image from itunes_item_image (#16694) 2024-09-10 23:24:43 +08:00
DIYgod 55c6f859a5
fix: 304 response error 2024-07-14 15:37:45 +08:00
TonyRL 3a58d90698 fix(template): remove undefined character and 0 width space
fix #8760
2024-05-24 08:12:02 +00:00
Tony b0b7adf382
fix(template): redis-backed instances always show ttl 1 (#15536) 2024-05-10 03:47:21 +08:00
Henry Wang 5c3711cbcc
feat: support .rss3 output type (#15258)
Co-authored-by: pull[bot] <39814207+pull[bot]@users.noreply.github.com>
2024-04-18 02:10:33 +08:00
Tony 0456ca9541
fix(core): remove unicode control characters in item description (#15263) 2024-04-17 02:51:05 +08:00
Tony 0893debb07
style(eslint): lint tsx (#15098) 2024-04-04 20:28:45 +08:00
Rongrong 045eaf664c
fix(core): misc fixes of disabling cache (#15036)
* fix(core): CACHE_TYPE='' does not disable cache

The documentation of config always states that CACHE_TYPE being empty
will disable the cache.

The regression was introduced in 847724ca. The corresponding test case
was mistakenly "fixed" in 719af907.

Signed-off-by: Rongrong <i@rong.moe>

* fix(core): false RSS <ttl> when cache unavailable

Some RSS readers may probe <ttl> to determine the minimum interval of
polling. However, it is always set to `config.cache.routeExpire / 60`
even when cache is unavailable. This may not be expected when the cache
is explicitly disabled.

Set it to 1 (minute) under such a circumstance. The minimum <ttl> (when
cache is available) is also limited to 1 to avoid potential misuse.

The Cache-Control header remains untouched as caching can be done by a
reverse proxy.

Signed-off-by: Rongrong <i@rong.moe>

---------

Signed-off-by: Rongrong <i@rong.moe>
2024-04-02 01:21:38 +08:00
DIYgod 40350abcbb
feat: use jsx (#14863)
* feat: render rss using jsx

* fix: error page response header

* feat: render atom using jsx

* feat: export art

* feat: use jsxRenderer

* chore: upgrade hono
2024-03-21 00:28:11 +08:00