RSSHub/lib/routes/mastodon
Yufan You 5589b89478
fix(cache): call JSON.stringify when storing value in cache.tryGet (#20671)
* fix(cache): call JSON.stringify when storing value in cache.tryGet

The value is returned as-is, so we may assume that it's not JSON
stringified inside `getValueFunc`. Otherwise, the caller already needs
to distinguish between values that are either JSON parsed or not.

* Revert "fix(routes/mastodon): don't refresh account ID cache (#20663)"

This reverts commit c2cff410fa.

* test: add test

* test: lint
2026-05-07 01:26:11 +08:00
..
account-id.ts style: format 2025-11-27 11:04:48 +08:00
acct.ts style: format 2025-11-27 11:04:48 +08:00
namespace.ts
tag.ts
timeline-local.ts style: auto format 2026-04-14 15:15:05 +00:00
timeline-remote.ts style: auto format 2026-04-14 15:15:05 +00:00
utils.ts fix(cache): call JSON.stringify when storing value in cache.tryGet (#20671) 2026-05-07 01:26:11 +08:00